home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Sound / LAME / WarpOS / src / configure < prev    next >
Encoding:
Text File  |  2001-07-01  |  173.8 KB  |  6,282 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --disable-dependency-tracking Speeds up one-time builds
  16.   --enable-dependency-tracking  Do not reject slow dependency extractors"
  17. ac_help="$ac_help
  18.   --enable-maintainer-mode enable make rules and dependencies not useful
  19.                           (and sometimes confusing) to the casual installer"
  20. ac_help="$ac_help
  21.   --enable-shared[=PKGS]  build shared libraries [default=yes]"
  22. ac_help="$ac_help
  23.   --enable-static[=PKGS]  build static libraries [default=yes]"
  24. ac_help="$ac_help
  25.   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
  26. ac_help="$ac_help
  27.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
  28. ac_help="$ac_help
  29.   --disable-libtool-lock  avoid locking (might break parallel builds)"
  30. ac_help="$ac_help
  31.   --with-dmalloc          use dmalloc, as in
  32.                           http://www.dmalloc.com/dmalloc.tar.gz"
  33. ac_help="$ac_help
  34.   --enable-nasm              Allow the use of nasm if available"
  35. ac_help="$ac_help
  36.   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
  37. ac_help="$ac_help
  38.   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
  39. ac_help="$ac_help
  40.   --disable-gtktest       Do not try to compile and run a test GTK program"
  41. ac_help="$ac_help
  42.   --enable-efence            Use ElectricFence for malloc debugging"
  43. ac_help="$ac_help
  44.   --with-fileio=lame         Use lame's internal file io routines [default]
  45.                =sndfile      Use Erik de Castro Lopo's libsndfile
  46.                              (no stdin possible currently)"
  47. ac_help="$ac_help
  48.   --with-sndfile-prefix=DIR  Alternate location for libsndfile"
  49. ac_help="$ac_help
  50.   --disable-analyzer-hooks   Exclude analyzer hooks"
  51. ac_help="$ac_help
  52.   --disable-decoder          Exclude mpg123 decoder"
  53. ac_help="$ac_help
  54.   --disable-decoder-layer1   Exclude layer1 decoding"
  55. ac_help="$ac_help
  56.   --disable-decoder-layer2   Exclude layer2 decoding"
  57. ac_help="$ac_help
  58.   --with-vorbis              Use vorbis library for ogg files
  59.                              [default: no]"
  60. ac_help="$ac_help
  61.   --with-vorbis-prefix=DIR   Alternate location for vorbis"
  62. ac_help="$ac_help
  63.   --enable-mp3x              Build GTK frame analyzer [default: no]"
  64. ac_help="$ac_help
  65.   --enable-mp3rtp            Build mp3rtp [default: no]"
  66. ac_help="$ac_help
  67.   --enable-brhist            Include the VBR bitrate histogram feature
  68.                              [default: yes if any termcap available]"
  69. ac_help="$ac_help
  70.   --enable-all-float         Whether to make all floting point variables as float, not double
  71.                              [default: no]"
  72. ac_help="$ac_help
  73.   --enable-expopt=full,norm  Whether to enable experimental optimizations
  74.                              [default: no]"
  75. ac_help="$ac_help
  76.   --enable-debug=alot,norm   Enable debugging (disables optimizations)
  77.                              [default: no]"
  78.  
  79. # Initialize some variables set by options.
  80. # The variables have the same names as the options, with
  81. # dashes changed to underlines.
  82. build=NONE
  83. cache_file=./config.cache
  84. exec_prefix=NONE
  85. host=NONE
  86. no_create=
  87. nonopt=NONE
  88. no_recursion=
  89. prefix=NONE
  90. program_prefix=NONE
  91. program_suffix=NONE
  92. program_transform_name=s,x,x,
  93. silent=
  94. site=
  95. srcdir=
  96. target=NONE
  97. verbose=
  98. x_includes=NONE
  99. x_libraries=NONE
  100. bindir='${exec_prefix}/bin'
  101. sbindir='${exec_prefix}/sbin'
  102. libexecdir='${exec_prefix}/libexec'
  103. datadir='${prefix}/share'
  104. sysconfdir='${prefix}/etc'
  105. sharedstatedir='${prefix}/com'
  106. localstatedir='${prefix}/var'
  107. libdir='${exec_prefix}/lib'
  108. includedir='${prefix}/include'
  109. oldincludedir='/usr/include'
  110. infodir='${prefix}/info'
  111. mandir='${prefix}/man'
  112.  
  113. # Initialize some other variables.
  114. subdirs=
  115. MFLAGS= MAKEFLAGS=
  116. SHELL=${CONFIG_SHELL-/bin/sh}
  117. # Maximum number of lines to put in a shell here document.
  118. ac_max_here_lines=12
  119.  
  120. ac_prev=
  121. for ac_option
  122. do
  123.  
  124.   # If the previous option needs an argument, assign it.
  125.   if test -n "$ac_prev"; then
  126.     eval "$ac_prev=\$ac_option"
  127.     ac_prev=
  128.     continue
  129.   fi
  130.  
  131.   case "$ac_option" in
  132.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  133.   *) ac_optarg= ;;
  134.   esac
  135.  
  136.   # Accept the important Cygnus configure options, so we can diagnose typos.
  137.  
  138.   case "$ac_option" in
  139.  
  140.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  141.     ac_prev=bindir ;;
  142.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  143.     bindir="$ac_optarg" ;;
  144.  
  145.   -build | --build | --buil | --bui | --bu)
  146.     ac_prev=build ;;
  147.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  148.     build="$ac_optarg" ;;
  149.  
  150.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  151.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  152.     ac_prev=cache_file ;;
  153.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  154.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  155.     cache_file="$ac_optarg" ;;
  156.  
  157.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  158.     ac_prev=datadir ;;
  159.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  160.   | --da=*)
  161.     datadir="$ac_optarg" ;;
  162.  
  163.   -disable-* | --disable-*)
  164.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  165.     # Reject names that are not valid shell variable names.
  166.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  167.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  168.     fi
  169.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  170.     eval "enable_${ac_feature}=no" ;;
  171.  
  172.   -enable-* | --enable-*)
  173.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  174.     # Reject names that are not valid shell variable names.
  175.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  176.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  177.     fi
  178.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  179.     case "$ac_option" in
  180.       *=*) ;;
  181.       *) ac_optarg=yes ;;
  182.     esac
  183.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  184.  
  185.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  186.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  187.   | --exec | --exe | --ex)
  188.     ac_prev=exec_prefix ;;
  189.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  190.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  191.   | --exec=* | --exe=* | --ex=*)
  192.     exec_prefix="$ac_optarg" ;;
  193.  
  194.   -gas | --gas | --ga | --g)
  195.     # Obsolete; use --with-gas.
  196.     with_gas=yes ;;
  197.  
  198.   -help | --help | --hel | --he)
  199.     # Omit some internal or obsolete options to make the list less imposing.
  200.     # This message is too long to be a string in the A/UX 3.1 sh.
  201.     cat << EOF
  202. Usage: configure [options] [host]
  203. Options: [defaults in brackets after descriptions]
  204. Configuration:
  205.   --cache-file=FILE       cache test results in FILE
  206.   --help                  print this message
  207.   --no-create             do not create output files
  208.   --quiet, --silent       do not print \`checking...' messages
  209.   --version               print the version of autoconf that created configure
  210. Directory and file names:
  211.   --prefix=PREFIX         install architecture-independent files in PREFIX
  212.                           [$ac_default_prefix]
  213.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  214.                           [same as prefix]
  215.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  216.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  217.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  218.   --datadir=DIR           read-only architecture-independent data in DIR
  219.                           [PREFIX/share]
  220.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  221.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  222.                           [PREFIX/com]
  223.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  224.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  225.   --includedir=DIR        C header files in DIR [PREFIX/include]
  226.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  227.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  228.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  229.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  230.   --program-prefix=PREFIX prepend PREFIX to installed program names
  231.   --program-suffix=SUFFIX append SUFFIX to installed program names
  232.   --program-transform-name=PROGRAM
  233.                           run sed PROGRAM on installed program names
  234. EOF
  235.     cat << EOF
  236. Host type:
  237.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  238.   --host=HOST             configure for HOST [guessed]
  239.   --target=TARGET         configure for TARGET [TARGET=HOST]
  240. Features and packages:
  241.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  242.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  243.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  244.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  245.   --x-includes=DIR        X include files are in DIR
  246.   --x-libraries=DIR       X library files are in DIR
  247. EOF
  248.     if test -n "$ac_help"; then
  249.       echo "--enable and --with options recognized:$ac_help"
  250.     fi
  251.     exit 0 ;;
  252.  
  253.   -host | --host | --hos | --ho)
  254.     ac_prev=host ;;
  255.   -host=* | --host=* | --hos=* | --ho=*)
  256.     host="$ac_optarg" ;;
  257.  
  258.   -includedir | --includedir | --includedi | --included | --include \
  259.   | --includ | --inclu | --incl | --inc)
  260.     ac_prev=includedir ;;
  261.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  262.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  263.     includedir="$ac_optarg" ;;
  264.  
  265.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  266.     ac_prev=infodir ;;
  267.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  268.     infodir="$ac_optarg" ;;
  269.  
  270.   -libdir | --libdir | --libdi | --libd)
  271.     ac_prev=libdir ;;
  272.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  273.     libdir="$ac_optarg" ;;
  274.  
  275.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  276.   | --libexe | --libex | --libe)
  277.     ac_prev=libexecdir ;;
  278.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  279.   | --libexe=* | --libex=* | --libe=*)
  280.     libexecdir="$ac_optarg" ;;
  281.  
  282.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  283.   | --localstate | --localstat | --localsta | --localst \
  284.   | --locals | --local | --loca | --loc | --lo)
  285.     ac_prev=localstatedir ;;
  286.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  287.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  288.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  289.     localstatedir="$ac_optarg" ;;
  290.  
  291.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  292.     ac_prev=mandir ;;
  293.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  294.     mandir="$ac_optarg" ;;
  295.  
  296.   -nfp | --nfp | --nf)
  297.     # Obsolete; use --without-fp.
  298.     with_fp=no ;;
  299.  
  300.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  301.   | --no-cr | --no-c)
  302.     no_create=yes ;;
  303.  
  304.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  305.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  306.     no_recursion=yes ;;
  307.  
  308.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  309.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  310.   | --oldin | --oldi | --old | --ol | --o)
  311.     ac_prev=oldincludedir ;;
  312.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  313.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  314.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  315.     oldincludedir="$ac_optarg" ;;
  316.  
  317.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  318.     ac_prev=prefix ;;
  319.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  320.     prefix="$ac_optarg" ;;
  321.  
  322.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  323.   | --program-pre | --program-pr | --program-p)
  324.     ac_prev=program_prefix ;;
  325.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  326.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  327.     program_prefix="$ac_optarg" ;;
  328.  
  329.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  330.   | --program-suf | --program-su | --program-s)
  331.     ac_prev=program_suffix ;;
  332.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  333.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  334.     program_suffix="$ac_optarg" ;;
  335.  
  336.   -program-transform-name | --program-transform-name \
  337.   | --program-transform-nam | --program-transform-na \
  338.   | --program-transform-n | --program-transform- \
  339.   | --program-transform | --program-transfor \
  340.   | --program-transfo | --program-transf \
  341.   | --program-trans | --program-tran \
  342.   | --progr-tra | --program-tr | --program-t)
  343.     ac_prev=program_transform_name ;;
  344.   -program-transform-name=* | --program-transform-name=* \
  345.   | --program-transform-nam=* | --program-transform-na=* \
  346.   | --program-transform-n=* | --program-transform-=* \
  347.   | --program-transform=* | --program-transfor=* \
  348.   | --program-transfo=* | --program-transf=* \
  349.   | --program-trans=* | --program-tran=* \
  350.   | --progr-tra=* | --program-tr=* | --program-t=*)
  351.     program_transform_name="$ac_optarg" ;;
  352.  
  353.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  354.   | -silent | --silent | --silen | --sile | --sil)
  355.     silent=yes ;;
  356.  
  357.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  358.     ac_prev=sbindir ;;
  359.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  360.   | --sbi=* | --sb=*)
  361.     sbindir="$ac_optarg" ;;
  362.  
  363.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  364.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  365.   | --sharedst | --shareds | --shared | --share | --shar \
  366.   | --sha | --sh)
  367.     ac_prev=sharedstatedir ;;
  368.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  369.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  370.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  371.   | --sha=* | --sh=*)
  372.     sharedstatedir="$ac_optarg" ;;
  373.  
  374.   -site | --site | --sit)
  375.     ac_prev=site ;;
  376.   -site=* | --site=* | --sit=*)
  377.     site="$ac_optarg" ;;
  378.  
  379.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  380.     ac_prev=srcdir ;;
  381.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  382.     srcdir="$ac_optarg" ;;
  383.  
  384.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  385.   | --syscon | --sysco | --sysc | --sys | --sy)
  386.     ac_prev=sysconfdir ;;
  387.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  388.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  389.     sysconfdir="$ac_optarg" ;;
  390.  
  391.   -target | --target | --targe | --targ | --tar | --ta | --t)
  392.     ac_prev=target ;;
  393.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  394.     target="$ac_optarg" ;;
  395.  
  396.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  397.     verbose=yes ;;
  398.  
  399.   -version | --version | --versio | --versi | --vers)
  400.     echo "configure generated by autoconf version 2.13"
  401.     exit 0 ;;
  402.  
  403.   -with-* | --with-*)
  404.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  405.     # Reject names that are not valid shell variable names.
  406.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  407.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  408.     fi
  409.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  410.     case "$ac_option" in
  411.       *=*) ;;
  412.       *) ac_optarg=yes ;;
  413.     esac
  414.     eval "with_${ac_package}='$ac_optarg'" ;;
  415.  
  416.   -without-* | --without-*)
  417.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  418.     # Reject names that are not valid shell variable names.
  419.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  420.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  421.     fi
  422.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  423.     eval "with_${ac_package}=no" ;;
  424.  
  425.   --x)
  426.     # Obsolete; use --with-x.
  427.     with_x=yes ;;
  428.  
  429.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  430.   | --x-incl | --x-inc | --x-in | --x-i)
  431.     ac_prev=x_includes ;;
  432.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  433.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  434.     x_includes="$ac_optarg" ;;
  435.  
  436.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  437.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  438.     ac_prev=x_libraries ;;
  439.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  440.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  441.     x_libraries="$ac_optarg" ;;
  442.  
  443.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  444.     ;;
  445.  
  446.   *)
  447.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  448.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  449.     fi
  450.     if test "x$nonopt" != xNONE; then
  451.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  452.     fi
  453.     nonopt="$ac_option"
  454.     ;;
  455.  
  456.   esac
  457. done
  458.  
  459. if test -n "$ac_prev"; then
  460.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  461. fi
  462.  
  463. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  464.  
  465. # File descriptor usage:
  466. # 0 standard input
  467. # 1 file creation
  468. # 2 errors and warnings
  469. # 3 some systems may open it to /dev/tty
  470. # 4 used on the Kubota Titan
  471. # 6 checking for... messages and results
  472. # 5 compiler messages saved in config.log
  473. if test "$silent" = yes; then
  474.   exec 6>/dev/null
  475. else
  476.   exec 6>&1
  477. fi
  478. exec 5>./config.log
  479.  
  480. echo "\
  481. This file contains any messages produced by compilers while
  482. running configure, to aid debugging if configure makes a mistake.
  483. " 1>&5
  484.  
  485. # Strip out --no-create and --no-recursion so they do not pile up.
  486. # Also quote any args containing shell metacharacters.
  487. ac_configure_args=
  488. for ac_arg
  489. do
  490.   case "$ac_arg" in
  491.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  492.   | --no-cr | --no-c) ;;
  493.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  494.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  495.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  496.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  497.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  498.   esac
  499. done
  500.  
  501. # NLS nuisances.
  502. # Only set these to C if already set.  These must not be set unconditionally
  503. # because not all systems understand e.g. LANG=C (notably SCO).
  504. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  505. # Non-C LC_CTYPE values break the ctype check.
  506. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  507. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  508. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  509. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  510.  
  511. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  512. rm -rf conftest* confdefs.h
  513. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  514. echo > confdefs.h
  515.  
  516. # A filename unique to this package, relative to the directory that
  517. # configure is in, which we can look for to find out if srcdir is correct.
  518. ac_unique_file=libmp3lame/lame.c
  519.  
  520. # Find the source files, if location was not specified.
  521. if test -z "$srcdir"; then
  522.   ac_srcdir_defaulted=yes
  523.   # Try the directory containing this script, then its parent.
  524.   ac_prog=$0
  525.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  526.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  527.   srcdir=$ac_confdir
  528.   if test ! -r $srcdir/$ac_unique_file; then
  529.     srcdir=..
  530.   fi
  531. else
  532.   ac_srcdir_defaulted=no
  533. fi
  534. if test ! -r $srcdir/$ac_unique_file; then
  535.   if test "$ac_srcdir_defaulted" = yes; then
  536.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  537.   else
  538.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  539.   fi
  540. fi
  541. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  542.  
  543. # Prefer explicitly selected file to automatically selected ones.
  544. if test -z "$CONFIG_SITE"; then
  545.   if test "x$prefix" != xNONE; then
  546.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  547.   else
  548.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  549.   fi
  550. fi
  551. for ac_site_file in $CONFIG_SITE; do
  552.   if test -r "$ac_site_file"; then
  553.     echo "loading site script $ac_site_file"
  554.     . "$ac_site_file"
  555.   fi
  556. done
  557.  
  558. if test -r "$cache_file"; then
  559.   echo "loading cache $cache_file"
  560.   . $cache_file
  561. else
  562.   echo "creating cache $cache_file"
  563.   > $cache_file
  564. fi
  565.  
  566. ac_ext=c
  567. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  568. ac_cpp='$CPP $CPPFLAGS'
  569. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  570. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  571. cross_compiling=$ac_cv_prog_cc_cross
  572.  
  573. ac_exeext=
  574. ac_objext=o
  575. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  576.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  577.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  578.     ac_n= ac_c='
  579. ' ac_t='    '
  580.   else
  581.     ac_n=-n ac_c= ac_t=
  582.   fi
  583. else
  584.   ac_n= ac_c='\c' ac_t=
  585. fi
  586.  
  587.  
  588.  
  589. ac_aux_dir=
  590. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  591.   if test -f $ac_dir/install-sh; then
  592.     ac_aux_dir=$ac_dir
  593.     ac_install_sh="$ac_aux_dir/install-sh -c"
  594.     break
  595.   elif test -f $ac_dir/install.sh; then
  596.     ac_aux_dir=$ac_dir
  597.     ac_install_sh="$ac_aux_dir/install.sh -c"
  598.     break
  599.   fi
  600. done
  601. if test -z "$ac_aux_dir"; then
  602.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  603. fi
  604. ac_config_guess=$ac_aux_dir/config.guess
  605. ac_config_sub=$ac_aux_dir/config.sub
  606. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  607.  
  608.  
  609. # Do some error checking and defaulting for the host and target type.
  610. # The inputs are:
  611. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  612. #
  613. # The rules are:
  614. # 1. You are not allowed to specify --host, --target, and nonopt at the
  615. #    same time.
  616. # 2. Host defaults to nonopt.
  617. # 3. If nonopt is not specified, then host defaults to the current host,
  618. #    as determined by config.guess.
  619. # 4. Target and build default to nonopt.
  620. # 5. If nonopt is not specified, then target and build default to host.
  621.  
  622. # The aliases save the names the user supplied, while $host etc.
  623. # will get canonicalized.
  624. case $host---$target---$nonopt in
  625. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  626. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  627. esac
  628.  
  629.  
  630. # Make sure we can run config.sub.
  631. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  632. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  633. fi
  634.  
  635. echo $ac_n "checking host system type""... $ac_c" 1>&6
  636. echo "configure:637: checking host system type" >&5
  637.  
  638. host_alias=$host
  639. case "$host_alias" in
  640. NONE)
  641.   case $nonopt in
  642.   NONE)
  643.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  644.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  645.     fi ;;
  646.   *) host_alias=$nonopt ;;
  647.   esac ;;
  648. esac
  649.  
  650. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  651. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  652. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  653. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  654. echo "$ac_t""$host" 1>&6
  655.  
  656. echo $ac_n "checking target system type""... $ac_c" 1>&6
  657. echo "configure:658: checking target system type" >&5
  658.  
  659. target_alias=$target
  660. case "$target_alias" in
  661. NONE)
  662.   case $nonopt in
  663.   NONE) target_alias=$host_alias ;;
  664.   *) target_alias=$nonopt ;;
  665.   esac ;;
  666. esac
  667.  
  668. target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  669. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  670. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  671. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  672. echo "$ac_t""$target" 1>&6
  673.  
  674. echo $ac_n "checking build system type""... $ac_c" 1>&6
  675. echo "configure:676: checking build system type" >&5
  676.  
  677. build_alias=$build
  678. case "$build_alias" in
  679. NONE)
  680.   case $nonopt in
  681.   NONE) build_alias=$host_alias ;;
  682.   *) build_alias=$nonopt ;;
  683.   esac ;;
  684. esac
  685.  
  686. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  687. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  688. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  689. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  690. echo "$ac_t""$build" 1>&6
  691.  
  692. test "$host_alias" != "$target_alias" &&
  693.   test "$program_prefix$program_suffix$program_transform_name" = \
  694.     NONENONEs,x,x, &&
  695.   program_prefix=${target_alias}-
  696.  
  697.  
  698.   
  699.   echo $ac_n "checking cached system tuple""... $ac_c" 1>&6
  700. echo "configure:701: checking cached system tuple" >&5
  701.   if { test x"${ac_cv_host_system_type+set}" = x"set" &&
  702.        test x"$ac_cv_host_system_type" != x"$host"; } ||
  703.      { test x"${ac_cv_build_system_type+set}" = x"set" &&
  704.        test x"$ac_cv_build_system_type" != x"$build"; } ||
  705.      { test x"${ac_cv_target_system_type+set}" = x"set" &&
  706.        test x"$ac_cv_target_system_type" != x"$target"; }; then
  707.       echo "$ac_t""different" 1>&6
  708.       { echo "configure: error: remove config.cache and re-run configure" 1>&2; exit 1; }
  709.   else
  710.     echo "$ac_t""ok" 1>&6
  711.   fi
  712.   ac_cv_host_system_type="$host"
  713.   ac_cv_build_system_type="$build"
  714.   ac_cv_target_system_type="$target"
  715.  
  716.  
  717. # Find a good install program.  We prefer a C program (faster),
  718. # so one script is as good as another.  But avoid the broken or
  719. # incompatible versions:
  720. # SysV /etc/install, /usr/sbin/install
  721. # SunOS /usr/etc/install
  722. # IRIX /sbin/install
  723. # AIX /bin/install
  724. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  725. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  726. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  727. # ./install, which can be erroneously created by make from ./install.sh.
  728. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  729. echo "configure:730: checking for a BSD compatible install" >&5
  730. if test -z "$INSTALL"; then
  731. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  732.   echo $ac_n "(cached) $ac_c" 1>&6
  733. else
  734.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  735.   for ac_dir in $PATH; do
  736.     # Account for people who put trailing slashes in PATH elements.
  737.     case "$ac_dir/" in
  738.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  739.     *)
  740.       # OSF1 and SCO ODT 3.0 have their own names for install.
  741.       # Don't use installbsd from OSF since it installs stuff as root
  742.       # by default.
  743.       for ac_prog in ginstall scoinst install; do
  744.         if test -f $ac_dir/$ac_prog; then
  745.       if test $ac_prog = install &&
  746.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  747.         # AIX install.  It has an incompatible calling convention.
  748.         :
  749.       else
  750.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  751.         break 2
  752.       fi
  753.     fi
  754.       done
  755.       ;;
  756.     esac
  757.   done
  758.   IFS="$ac_save_IFS"
  759.  
  760. fi
  761.   if test "${ac_cv_path_install+set}" = set; then
  762.     INSTALL="$ac_cv_path_install"
  763.   else
  764.     # As a last resort, use the slow shell script.  We don't cache a
  765.     # path for INSTALL within a source directory, because that will
  766.     # break other packages using the cache if that directory is
  767.     # removed, or if the path is relative.
  768.     INSTALL="$ac_install_sh"
  769.   fi
  770. fi
  771. echo "$ac_t""$INSTALL" 1>&6
  772.  
  773. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  774. # It thinks the first close brace ends the variable substitution.
  775. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  776.  
  777. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  778.  
  779. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  780.  
  781. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  782. echo "configure:783: checking whether build environment is sane" >&5
  783. # Just in case
  784. sleep 1
  785. echo timestamp > conftest.file
  786. # Do `set' in a subshell so we don't clobber the current shell's
  787. # arguments.  Must try -L first in case configure is actually a
  788. # symlink; some systems play weird games with the mod time of symlinks
  789. # (eg FreeBSD returns the mod time of the symlink's containing
  790. # directory).
  791. if (
  792.    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  793.    if test "$*" = "X"; then
  794.       # -L didn't work.
  795.       set X `ls -t $srcdir/configure conftest.file`
  796.    fi
  797.    if test "$*" != "X $srcdir/configure conftest.file" \
  798.       && test "$*" != "X conftest.file $srcdir/configure"; then
  799.  
  800.       # If neither matched, then we have a broken ls.  This can happen
  801.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  802.       # broken ls alias from the environment.  This has actually
  803.       # happened.  Such a system could not be considered "sane".
  804.       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  805. alias in your environment" 1>&2; exit 1; }
  806.    fi
  807.  
  808.    test "$2" = conftest.file
  809.    )
  810. then
  811.    # Ok.
  812.    :
  813. else
  814.    { echo "configure: error: newly created file is older than distributed files!
  815. Check your system clock" 1>&2; exit 1; }
  816. fi
  817. rm -f conftest*
  818. echo "$ac_t""yes" 1>&6
  819. if test "$program_transform_name" = s,x,x,; then
  820.   program_transform_name=
  821. else
  822.   # Double any \ or $.  echo might interpret backslashes.
  823.   cat <<\EOF_SED > conftestsed
  824. s,\\,\\\\,g; s,\$,$$,g
  825. EOF_SED
  826.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  827.   rm -f conftestsed
  828. fi
  829. test "$program_prefix" != NONE &&
  830.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  831. # Use a double $ so make ignores it.
  832. test "$program_suffix" != NONE &&
  833.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  834.  
  835. # sed with no file args requires a program.
  836. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  837.  
  838. test x"${MISSING+set}" = xset ||
  839.   MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
  840. # Use eval to expand $SHELL
  841. if eval "$MISSING --run :"; then
  842.   am_missing_run="$MISSING --run "
  843. else
  844.   am_missing_run=
  845.   am_backtick='`'
  846.   echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
  847. fi
  848.  
  849. for ac_prog in gawk mawk nawk awk
  850. do
  851. # Extract the first word of "$ac_prog", so it can be a program name with args.
  852. set dummy $ac_prog; ac_word=$2
  853. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  854. echo "configure:855: checking for $ac_word" >&5
  855. if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  856.   echo $ac_n "(cached) $ac_c" 1>&6
  857. else
  858.   if test -n "$AWK"; then
  859.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  860. else
  861.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  862.   ac_dummy="$PATH"
  863.   for ac_dir in $ac_dummy; do
  864.     test -z "$ac_dir" && ac_dir=.
  865.     if test -f $ac_dir/$ac_word; then
  866.       ac_cv_prog_AWK="$ac_prog"
  867.       break
  868.     fi
  869.   done
  870.   IFS="$ac_save_ifs"
  871. fi
  872. fi
  873. AWK="$ac_cv_prog_AWK"
  874. if test -n "$AWK"; then
  875.   echo "$ac_t""$AWK" 1>&6
  876. else
  877.   echo "$ac_t""no" 1>&6
  878. fi
  879.  
  880. test -n "$AWK" && break
  881. done
  882.  
  883. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  884. echo "configure:885: checking whether ${MAKE-make} sets \${MAKE}" >&5
  885. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  886. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  887.   echo $ac_n "(cached) $ac_c" 1>&6
  888. else
  889.   cat > conftestmake <<\EOF
  890. all:
  891.     @echo 'ac_maketemp="${MAKE}"'
  892. EOF
  893. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  894. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  895. if test -n "$ac_maketemp"; then
  896.   eval ac_cv_prog_make_${ac_make}_set=yes
  897. else
  898.   eval ac_cv_prog_make_${ac_make}_set=no
  899. fi
  900. rm -f conftestmake
  901. fi
  902. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  903.   echo "$ac_t""yes" 1>&6
  904.   SET_MAKE=
  905. else
  906.   echo "$ac_t""no" 1>&6
  907.   SET_MAKE="MAKE=${MAKE-make}"
  908. fi
  909.  
  910. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  911. if test "${enable_dependency_tracking+set}" = set; then
  912.   enableval="$enable_dependency_tracking"
  913.   :
  914. fi
  915.  
  916. if test "x$enable_dependency_tracking" = xno; then
  917.   AMDEP="#"
  918. else
  919.   am_depcomp="$ac_aux_dir/depcomp"
  920.   if test ! -f "$am_depcomp"; then
  921.     AMDEP="#"
  922.   else
  923.     AMDEP=
  924.   fi
  925. fi
  926.  
  927. if test -z "$AMDEP"; then
  928.   AMDEPBACKSLASH='\'
  929. else
  930.   AMDEPBACKSLASH=
  931. fi
  932.  
  933.  
  934.  
  935.  
  936. if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
  937.   DEPDIR=.deps
  938.   # We redirect because .deps might already exist and be populated.
  939.   # In this situation we don't want to see an error.
  940.   rmdir .deps > /dev/null 2>&1
  941. else
  942.   DEPDIR=_deps
  943. fi
  944.  
  945.  
  946. # test to see if srcdir already configured
  947. if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
  948.    test -f $srcdir/config.status; then
  949.   { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; }
  950. fi
  951.  
  952. # Define the identity of the package.
  953. PACKAGE=lame
  954. VERSION=3.89
  955. cat >> confdefs.h <<EOF
  956. #define PACKAGE "$PACKAGE"
  957. EOF
  958.  
  959. cat >> confdefs.h <<EOF
  960. #define VERSION "$VERSION"
  961. EOF
  962.  
  963.  
  964. # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
  965. # the ones we care about.
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974. # Some tools Automake needs.
  975.  
  976. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
  977.  
  978.  
  979. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  980.  
  981.  
  982. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
  983.  
  984.  
  985. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  986.  
  987.  
  988. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  989.  
  990.  
  991. AMTAR=${AMTAR-"${am_missing_run}tar"}
  992.  
  993.  
  994. if test -z "$install_sh"; then
  995.    for install_sh in "$ac_aux_dir/install-sh" \
  996.                      "$ac_aux_dir/install.sh" \
  997.                      "${am_missing_run}${ac_auxdir}/install-sh";
  998.    do
  999.      test -f "$install_sh" && break
  1000.    done
  1001.    # FIXME: an evil hack: we remove the SHELL invocation from
  1002.    # install_sh because automake adds it back in.  Sigh.
  1003.    install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'`
  1004. fi
  1005.  
  1006. # We need awk for the "check" target.  The system "awk" is bad on
  1007. # some platforms.
  1008.  
  1009.  
  1010.   
  1011.  
  1012. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  1013. echo "configure:1014: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1014.     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1015. if test "${enable_maintainer_mode+set}" = set; then
  1016.   enableval="$enable_maintainer_mode"
  1017.   USE_MAINTAINER_MODE=$enableval
  1018. else
  1019.   USE_MAINTAINER_MODE=no
  1020. fi
  1021.  
  1022.   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  1023.   
  1024.  
  1025. if test $USE_MAINTAINER_MODE = yes; then
  1026.   MAINTAINER_MODE_TRUE=
  1027.   MAINTAINER_MODE_FALSE='#'
  1028. else
  1029.   MAINTAINER_MODE_TRUE='#'
  1030.   MAINTAINER_MODE_FALSE=
  1031. fi
  1032.   MAINT=$MAINTAINER_MODE_TRUE
  1033.   
  1034.  
  1035. am_make=${MAKE-make}
  1036. # BSD make uses .include
  1037. cat > confinc << 'END'
  1038. doit:
  1039.     @echo done
  1040. END
  1041. # If we don't find an include directive, just comment out the code.
  1042. echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6
  1043. echo "configure:1044: checking for style of include used by $am_make" >&5
  1044. _am_include='#'
  1045. for am_inc in include .include; do
  1046.    echo "$am_inc confinc" > confmf
  1047.    if test "`$am_make -f confmf 2> /dev/null`" = "done"; then
  1048.       _am_include=$am_inc
  1049.       break
  1050.    fi
  1051. done
  1052.  
  1053. echo "$ac_t""$_am_include" 1>&6
  1054. rm -f confinc confmf
  1055.  
  1056.  
  1057. # AC_DISABLE_SHARED
  1058.  
  1059.  
  1060. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1061. echo "configure:1062: checking how to run the C preprocessor" >&5
  1062. # On Suns, sometimes $CPP names a directory.
  1063. if test -n "$CPP" && test -d "$CPP"; then
  1064.   CPP=
  1065. fi
  1066. if test -z "$CPP"; then
  1067. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1068.   echo $ac_n "(cached) $ac_c" 1>&6
  1069. else
  1070.     # This must be in double quotes, not single quotes, because CPP may get
  1071.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1072.   CPP="${CC-cc} -E"
  1073.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1074.   # not just through cpp.
  1075.   cat > conftest.$ac_ext <<EOF
  1076. #line 1077 "configure"
  1077. #include "confdefs.h"
  1078. #include <assert.h>
  1079. Syntax Error
  1080. EOF
  1081. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1082. { (eval echo configure:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1083. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1084. if test -z "$ac_err"; then
  1085.   :
  1086. else
  1087.   echo "$ac_err" >&5
  1088.   echo "configure: failed program was:" >&5
  1089.   cat conftest.$ac_ext >&5
  1090.   rm -rf conftest*
  1091.   CPP="${CC-cc} -E -traditional-cpp"
  1092.   cat > conftest.$ac_ext <<EOF
  1093. #line 1094 "configure"
  1094. #include "confdefs.h"
  1095. #include <assert.h>
  1096. Syntax Error
  1097. EOF
  1098. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1099. { (eval echo configure:1100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1100. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1101. if test -z "$ac_err"; then
  1102.   :
  1103. else
  1104.   echo "$ac_err" >&5
  1105.   echo "configure: failed program was:" >&5
  1106.   cat conftest.$ac_ext >&5
  1107.   rm -rf conftest*
  1108.   CPP="${CC-cc} -nologo -E"
  1109.   cat > conftest.$ac_ext <<EOF
  1110. #line 1111 "configure"
  1111. #include "confdefs.h"
  1112. #include <assert.h>
  1113. Syntax Error
  1114. EOF
  1115. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1116. { (eval echo configure:1117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1117. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1118. if test -z "$ac_err"; then
  1119.   :
  1120. else
  1121.   echo "$ac_err" >&5
  1122.   echo "configure: failed program was:" >&5
  1123.   cat conftest.$ac_ext >&5
  1124.   rm -rf conftest*
  1125.   CPP=/lib/cpp
  1126. fi
  1127. rm -f conftest*
  1128. fi
  1129. rm -f conftest*
  1130. fi
  1131. rm -f conftest*
  1132.   ac_cv_prog_CPP="$CPP"
  1133. fi
  1134.   CPP="$ac_cv_prog_CPP"
  1135. else
  1136.   ac_cv_prog_CPP="$CPP"
  1137. fi
  1138. echo "$ac_t""$CPP" 1>&6
  1139.  
  1140. # Check whether --enable-shared or --disable-shared was given.
  1141. if test "${enable_shared+set}" = set; then
  1142.   enableval="$enable_shared"
  1143.   p=${PACKAGE-default}
  1144. case "$enableval" in
  1145. yes) enable_shared=yes ;;
  1146. no) enable_shared=no ;;
  1147. *)
  1148.   enable_shared=no
  1149.   # Look at the argument we got.  We use all the common list separators.
  1150.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1151.   for pkg in $enableval; do
  1152.     if test "X$pkg" = "X$p"; then
  1153.       enable_shared=yes
  1154.     fi
  1155.   done
  1156.   IFS="$ac_save_ifs"
  1157.   ;;
  1158. esac
  1159. else
  1160.   enable_shared=yes
  1161. fi
  1162.  
  1163. # Check whether --enable-static or --disable-static was given.
  1164. if test "${enable_static+set}" = set; then
  1165.   enableval="$enable_static"
  1166.   p=${PACKAGE-default}
  1167. case "$enableval" in
  1168. yes) enable_static=yes ;;
  1169. no) enable_static=no ;;
  1170. *)
  1171.   enable_static=no
  1172.   # Look at the argument we got.  We use all the common list separators.
  1173.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1174.   for pkg in $enableval; do
  1175.     if test "X$pkg" = "X$p"; then
  1176.       enable_static=yes
  1177.     fi
  1178.   done
  1179.   IFS="$ac_save_ifs"
  1180.   ;;
  1181. esac
  1182. else
  1183.   enable_static=yes
  1184. fi
  1185.  
  1186. # Check whether --enable-fast-install or --disable-fast-install was given.
  1187. if test "${enable_fast_install+set}" = set; then
  1188.   enableval="$enable_fast_install"
  1189.   p=${PACKAGE-default}
  1190. case "$enableval" in
  1191. yes) enable_fast_install=yes ;;
  1192. no) enable_fast_install=no ;;
  1193. *)
  1194.   enable_fast_install=no
  1195.   # Look at the argument we got.  We use all the common list separators.
  1196.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1197.   for pkg in $enableval; do
  1198.     if test "X$pkg" = "X$p"; then
  1199.       enable_fast_install=yes
  1200.     fi
  1201.   done
  1202.   IFS="$ac_save_ifs"
  1203.   ;;
  1204. esac
  1205. else
  1206.   enable_fast_install=yes
  1207. fi
  1208.  
  1209. # Extract the first word of "ranlib", so it can be a program name with args.
  1210. set dummy ranlib; ac_word=$2
  1211. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1212. echo "configure:1213: checking for $ac_word" >&5
  1213. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1214.   echo $ac_n "(cached) $ac_c" 1>&6
  1215. else
  1216.   if test -n "$RANLIB"; then
  1217.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1218. else
  1219.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1220.   ac_dummy="$PATH"
  1221.   for ac_dir in $ac_dummy; do
  1222.     test -z "$ac_dir" && ac_dir=.
  1223.     if test -f $ac_dir/$ac_word; then
  1224.       ac_cv_prog_RANLIB="ranlib"
  1225.       break
  1226.     fi
  1227.   done
  1228.   IFS="$ac_save_ifs"
  1229.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1230. fi
  1231. fi
  1232. RANLIB="$ac_cv_prog_RANLIB"
  1233. if test -n "$RANLIB"; then
  1234.   echo "$ac_t""$RANLIB" 1>&6
  1235. else
  1236.   echo "$ac_t""no" 1>&6
  1237. fi
  1238.  
  1239. # Extract the first word of "gcc", so it can be a program name with args.
  1240. set dummy gcc; ac_word=$2
  1241. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1242. echo "configure:1243: checking for $ac_word" >&5
  1243. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1244.   echo $ac_n "(cached) $ac_c" 1>&6
  1245. else
  1246.   if test -n "$CC"; then
  1247.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1248. else
  1249.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1250.   ac_dummy="$PATH"
  1251.   for ac_dir in $ac_dummy; do
  1252.     test -z "$ac_dir" && ac_dir=.
  1253.     if test -f $ac_dir/$ac_word; then
  1254.       ac_cv_prog_CC="gcc"
  1255.       break
  1256.     fi
  1257.   done
  1258.   IFS="$ac_save_ifs"
  1259. fi
  1260. fi
  1261. CC="$ac_cv_prog_CC"
  1262. if test -n "$CC"; then
  1263.   echo "$ac_t""$CC" 1>&6
  1264. else
  1265.   echo "$ac_t""no" 1>&6
  1266. fi
  1267.  
  1268. if test -z "$CC"; then
  1269.   # Extract the first word of "cc", so it can be a program name with args.
  1270. set dummy cc; ac_word=$2
  1271. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1272. echo "configure:1273: checking for $ac_word" >&5
  1273. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1274.   echo $ac_n "(cached) $ac_c" 1>&6
  1275. else
  1276.   if test -n "$CC"; then
  1277.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1278. else
  1279.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1280.   ac_prog_rejected=no
  1281.   ac_dummy="$PATH"
  1282.   for ac_dir in $ac_dummy; do
  1283.     test -z "$ac_dir" && ac_dir=.
  1284.     if test -f $ac_dir/$ac_word; then
  1285.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1286.         ac_prog_rejected=yes
  1287.     continue
  1288.       fi
  1289.       ac_cv_prog_CC="cc"
  1290.       break
  1291.     fi
  1292.   done
  1293.   IFS="$ac_save_ifs"
  1294. if test $ac_prog_rejected = yes; then
  1295.   # We found a bogon in the path, so make sure we never use it.
  1296.   set dummy $ac_cv_prog_CC
  1297.   shift
  1298.   if test $# -gt 0; then
  1299.     # We chose a different compiler from the bogus one.
  1300.     # However, it has the same basename, so the bogon will be chosen
  1301.     # first if we set CC to just the basename; use the full file name.
  1302.     shift
  1303.     set dummy "$ac_dir/$ac_word" "$@"
  1304.     shift
  1305.     ac_cv_prog_CC="$@"
  1306.   fi
  1307. fi
  1308. fi
  1309. fi
  1310. CC="$ac_cv_prog_CC"
  1311. if test -n "$CC"; then
  1312.   echo "$ac_t""$CC" 1>&6
  1313. else
  1314.   echo "$ac_t""no" 1>&6
  1315. fi
  1316.  
  1317.   if test -z "$CC"; then
  1318.     case "`uname -s`" in
  1319.     *win32* | *WIN32*)
  1320.       # Extract the first word of "cl", so it can be a program name with args.
  1321. set dummy cl; ac_word=$2
  1322. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1323. echo "configure:1324: checking for $ac_word" >&5
  1324. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1325.   echo $ac_n "(cached) $ac_c" 1>&6
  1326. else
  1327.   if test -n "$CC"; then
  1328.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1329. else
  1330.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1331.   ac_dummy="$PATH"
  1332.   for ac_dir in $ac_dummy; do
  1333.     test -z "$ac_dir" && ac_dir=.
  1334.     if test -f $ac_dir/$ac_word; then
  1335.       ac_cv_prog_CC="cl"
  1336.       break
  1337.     fi
  1338.   done
  1339.   IFS="$ac_save_ifs"
  1340. fi
  1341. fi
  1342. CC="$ac_cv_prog_CC"
  1343. if test -n "$CC"; then
  1344.   echo "$ac_t""$CC" 1>&6
  1345. else
  1346.   echo "$ac_t""no" 1>&6
  1347. fi
  1348.  ;;
  1349.     esac
  1350.   fi
  1351.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1352. fi
  1353.  
  1354. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1355. echo "configure:1356: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1356.  
  1357. ac_ext=c
  1358. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1359. ac_cpp='$CPP $CPPFLAGS'
  1360. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1361. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1362. cross_compiling=$ac_cv_prog_cc_cross
  1363.  
  1364. cat > conftest.$ac_ext << EOF
  1365.  
  1366. #line 1367 "configure"
  1367. #include "confdefs.h"
  1368.  
  1369. main(){return(0);}
  1370. EOF
  1371. if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1372.   ac_cv_prog_cc_works=yes
  1373.   # If we can't run a trivial program, we are probably using a cross compiler.
  1374.   if (./conftest; exit) 2>/dev/null; then
  1375.     ac_cv_prog_cc_cross=no
  1376.   else
  1377.     ac_cv_prog_cc_cross=yes
  1378.   fi
  1379. else
  1380.   echo "configure: failed program was:" >&5
  1381.   cat conftest.$ac_ext >&5
  1382.   ac_cv_prog_cc_works=no
  1383. fi
  1384. rm -fr conftest*
  1385. ac_ext=c
  1386. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1387. ac_cpp='$CPP $CPPFLAGS'
  1388. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1389. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1390. cross_compiling=$ac_cv_prog_cc_cross
  1391.  
  1392. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1393. if test $ac_cv_prog_cc_works = no; then
  1394.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1395. fi
  1396. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1397. echo "configure:1398: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1398. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1399. cross_compiling=$ac_cv_prog_cc_cross
  1400.  
  1401. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1402. echo "configure:1403: checking whether we are using GNU C" >&5
  1403. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1404.   echo $ac_n "(cached) $ac_c" 1>&6
  1405. else
  1406.   cat > conftest.c <<EOF
  1407. #ifdef __GNUC__
  1408.   yes;
  1409. #endif
  1410. EOF
  1411. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1412.   ac_cv_prog_gcc=yes
  1413. else
  1414.   ac_cv_prog_gcc=no
  1415. fi
  1416. fi
  1417.  
  1418. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1419.  
  1420. if test $ac_cv_prog_gcc = yes; then
  1421.   GCC=yes
  1422. else
  1423.   GCC=
  1424. fi
  1425.  
  1426. ac_test_CFLAGS="${CFLAGS+set}"
  1427. ac_save_CFLAGS="$CFLAGS"
  1428. CFLAGS=
  1429. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1430. echo "configure:1431: checking whether ${CC-cc} accepts -g" >&5
  1431. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1432.   echo $ac_n "(cached) $ac_c" 1>&6
  1433. else
  1434.   echo 'void f(){}' > conftest.c
  1435. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1436.   ac_cv_prog_cc_g=yes
  1437. else
  1438.   ac_cv_prog_cc_g=no
  1439. fi
  1440. rm -f conftest*
  1441.  
  1442. fi
  1443.  
  1444. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1445. if test "$ac_test_CFLAGS" = set; then
  1446.   CFLAGS="$ac_save_CFLAGS"
  1447. elif test $ac_cv_prog_cc_g = yes; then
  1448.   if test "$GCC" = yes; then
  1449.     CFLAGS="-g -O2"
  1450.   else
  1451.     CFLAGS="-g"
  1452.   fi
  1453. else
  1454.   if test "$GCC" = yes; then
  1455.     CFLAGS="-O2"
  1456.   else
  1457.     CFLAGS=
  1458.   fi
  1459. fi
  1460.  
  1461. depcc="$CC"
  1462. depcpp="$CPP"
  1463.  
  1464.  
  1465.  
  1466. echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6
  1467. echo "configure:1468: checking dependency style of $depcc" >&5
  1468. if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then
  1469.   echo $ac_n "(cached) $ac_c" 1>&6
  1470. else
  1471.   if test -z "$AMDEP"; then
  1472.   # We make a subdir and do the tests there.  Otherwise we can end up
  1473.   # making bogus files that we don't know about and never remove.  For
  1474.   # instance it was reported that on HP-UX the gcc test will end up
  1475.   # making a dummy file named `D' -- because `-MD' means `put the output
  1476.   # in D'.
  1477.   mkdir confdir
  1478.   # Copy depcomp to subdir because otherwise we won't find it if we're
  1479.   # using a relative directory.
  1480.   cp "$am_depcomp" confdir
  1481.   cd confdir
  1482.  
  1483.   am_cv_CC_dependencies_compiler_type=none
  1484.   for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "./depcomp"`; do
  1485.     # We need to recreate these files for each test, as the compiler may
  1486.     # overwrite some of them when testing with obscure command lines.
  1487.     # This happens at least with the AIX C compiler.
  1488.     echo '#include "conftest.h"' > conftest.c
  1489.     echo 'int i;' > conftest.h
  1490.  
  1491.     case "$depmode" in
  1492.     nosideeffect)
  1493.       # after this tag, mechanisms are not by side-effect, so they'll
  1494.       # only be used when explicitly requested
  1495.       if test "x$enable_dependency_tracking" = xyes; then
  1496.     continue
  1497.       else
  1498.     break
  1499.       fi
  1500.       ;;
  1501.     none) break ;;
  1502.     esac
  1503.     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  1504.     # mode.  It turns out that the SunPro C++ compiler does not properly
  1505.     # handle `-M -o', and we need to detect this.
  1506.     if depmode="$depmode" \
  1507.        source=conftest.c object=conftest.o \
  1508.        depfile=conftest.Po tmpdepfile=conftest.TPo \
  1509.        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
  1510.        grep conftest.h conftest.Po > /dev/null 2>&1; then
  1511.       am_cv_CC_dependencies_compiler_type="$depmode"
  1512.       break
  1513.     fi
  1514.   done
  1515.  
  1516.   cd ..
  1517.   rm -rf confdir
  1518. else
  1519.   am_cv_CC_dependencies_compiler_type=none
  1520. fi
  1521.  
  1522. fi
  1523.  
  1524. echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
  1525. CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
  1526.  
  1527.  
  1528. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1529. if test "${with_gnu_ld+set}" = set; then
  1530.   withval="$with_gnu_ld"
  1531.   test "$withval" = no || with_gnu_ld=yes
  1532. else
  1533.   with_gnu_ld=no
  1534. fi
  1535.  
  1536. ac_prog=ld
  1537. if test "$ac_cv_prog_gcc" = yes; then
  1538.   # Check if gcc -print-prog-name=ld gives a path.
  1539.   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1540. echo "configure:1541: checking for ld used by GCC" >&5
  1541.   ac_prog=`($CC -print-prog-name=ld) 2>&5`
  1542.   case "$ac_prog" in
  1543.     # Accept absolute paths.
  1544.     [\\/]* | [A-Za-z]:[\\/]*)
  1545.       re_direlt='/[^/][^/]*/\.\./'
  1546.       # Canonicalize the path of ld
  1547.       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1548.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1549.     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1550.       done
  1551.       test -z "$LD" && LD="$ac_prog"
  1552.       ;;
  1553.   "")
  1554.     # If it fails, then pretend we aren't using GCC.
  1555.     ac_prog=ld
  1556.     ;;
  1557.   *)
  1558.     # If it is relative, then search for the first ld in PATH.
  1559.     with_gnu_ld=unknown
  1560.     ;;
  1561.   esac
  1562. elif test "$with_gnu_ld" = yes; then
  1563.   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1564. echo "configure:1565: checking for GNU ld" >&5
  1565. else
  1566.   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1567. echo "configure:1568: checking for non-GNU ld" >&5
  1568. fi
  1569. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1570.   echo $ac_n "(cached) $ac_c" 1>&6
  1571. else
  1572.   if test -z "$LD"; then
  1573.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1574.   for ac_dir in $PATH; do
  1575.     test -z "$ac_dir" && ac_dir=.
  1576.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1577.       ac_cv_path_LD="$ac_dir/$ac_prog"
  1578.       # Check to see if the program is GNU ld.  I'd rather use --version,
  1579.       # but apparently some GNU ld's only accept -v.
  1580.       # Break only if it was the GNU/non-GNU ld that we prefer.
  1581.       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1582.     test "$with_gnu_ld" != no && break
  1583.       else
  1584.     test "$with_gnu_ld" != yes && break
  1585.       fi
  1586.     fi
  1587.   done
  1588.   IFS="$ac_save_ifs"
  1589. else
  1590.   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1591. fi
  1592. fi
  1593.  
  1594. LD="$ac_cv_path_LD"
  1595. if test -n "$LD"; then
  1596.   echo "$ac_t""$LD" 1>&6
  1597. else
  1598.   echo "$ac_t""no" 1>&6
  1599. fi
  1600. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1601. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1602. echo "configure:1603: checking if the linker ($LD) is GNU ld" >&5
  1603. if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1604.   echo $ac_n "(cached) $ac_c" 1>&6
  1605. else
  1606.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1607. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1608.   ac_cv_prog_gnu_ld=yes
  1609. else
  1610.   ac_cv_prog_gnu_ld=no
  1611. fi
  1612. fi
  1613.  
  1614. echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1615.  
  1616.  
  1617. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1618. echo "configure:1619: checking for BSD-compatible nm" >&5
  1619. if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1620.   echo $ac_n "(cached) $ac_c" 1>&6
  1621. else
  1622.   if test -n "$NM"; then
  1623.   # Let the user override the test.
  1624.   ac_cv_path_NM="$NM"
  1625. else
  1626.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1627.   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1628.     test -z "$ac_dir" && ac_dir=.
  1629.     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  1630.       # Check to see if the nm accepts a BSD-compat flag.
  1631.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1632.       #   nm: unknown option "B" ignored
  1633.       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1634.     ac_cv_path_NM="$ac_dir/nm -B"
  1635.     break
  1636.       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1637.     ac_cv_path_NM="$ac_dir/nm -p"
  1638.     break
  1639.       else
  1640.     ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  1641.     continue # so that we can try to find one that supports BSD flags
  1642.       fi
  1643.     fi
  1644.   done
  1645.   IFS="$ac_save_ifs"
  1646.   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1647. fi
  1648. fi
  1649.  
  1650. NM="$ac_cv_path_NM"
  1651. echo "$ac_t""$NM" 1>&6
  1652.  
  1653. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1654. echo "configure:1655: checking whether ln -s works" >&5
  1655. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1656.   echo $ac_n "(cached) $ac_c" 1>&6
  1657. else
  1658.   rm -f conftestdata
  1659. if ln -s X conftestdata 2>/dev/null
  1660. then
  1661.   rm -f conftestdata
  1662.   ac_cv_prog_LN_S="ln -s"
  1663. else
  1664.   ac_cv_prog_LN_S=ln
  1665. fi
  1666. fi
  1667. LN_S="$ac_cv_prog_LN_S"
  1668. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1669.   echo "$ac_t""yes" 1>&6
  1670. else
  1671.   echo "$ac_t""no" 1>&6
  1672. fi
  1673.  
  1674.  
  1675. case "$target" in
  1676. NONE) lt_target="$host" ;;
  1677. *) lt_target="$target" ;;
  1678. esac
  1679.  
  1680. # Check for any special flags to pass to ltconfig.
  1681. libtool_flags="--cache-file=$cache_file"
  1682. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1683. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1684. test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  1685. test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1686. test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1687.  
  1688.  
  1689. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  1690. if test "${enable_libtool_lock+set}" = set; then
  1691.   enableval="$enable_libtool_lock"
  1692.   :
  1693. fi
  1694.  
  1695. test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  1696. test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  1697.  
  1698. # Some flags need to be propagated to the compiler or linker for good
  1699. # libtool support.
  1700. case "$lt_target" in
  1701. *-*-irix6*)
  1702.   # Find out which ABI we are using.
  1703.   echo '#line 1704 "configure"' > conftest.$ac_ext
  1704.   if { (eval echo configure:1705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1705.     case "`/usr/bin/file conftest.o`" in
  1706.     *32-bit*)
  1707.       LD="${LD-ld} -32"
  1708.       ;;
  1709.     *N32*)
  1710.       LD="${LD-ld} -n32"
  1711.       ;;
  1712.     *64-bit*)
  1713.       LD="${LD-ld} -64"
  1714.       ;;
  1715.     esac
  1716.   fi
  1717.   rm -rf conftest*
  1718.   ;;
  1719.  
  1720. *-*-sco3.2v5*)
  1721.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1722.   SAVE_CFLAGS="$CFLAGS"
  1723.   CFLAGS="$CFLAGS -belf"
  1724.   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  1725. echo "configure:1726: checking whether the C compiler needs -belf" >&5
  1726. if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  1727.   echo $ac_n "(cached) $ac_c" 1>&6
  1728. else
  1729.   cat > conftest.$ac_ext <<EOF
  1730. #line 1731 "configure"
  1731. #include "confdefs.h"
  1732.  
  1733. int main() {
  1734.  
  1735. ; return 0; }
  1736. EOF
  1737. if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1738.   rm -rf conftest*
  1739.   lt_cv_cc_needs_belf=yes
  1740. else
  1741.   echo "configure: failed program was:" >&5
  1742.   cat conftest.$ac_ext >&5
  1743.   rm -rf conftest*
  1744.   lt_cv_cc_needs_belf=no
  1745. fi
  1746. rm -f conftest*
  1747. fi
  1748.  
  1749. echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  1750.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1751.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1752.     CFLAGS="$SAVE_CFLAGS"
  1753.   fi
  1754.   ;;
  1755.  
  1756.  
  1757. esac
  1758.  
  1759.  
  1760. # Save cache, so that ltconfig can load it
  1761. cat > confcache <<\EOF
  1762. # This file is a shell script that caches the results of configure
  1763. # tests run on this system so they can be shared between configure
  1764. # scripts and configure runs.  It is not useful on other systems.
  1765. # If it contains results you don't want to keep, you may remove or edit it.
  1766. #
  1767. # By default, configure uses ./config.cache as the cache file,
  1768. # creating it if it does not exist already.  You can give configure
  1769. # the --cache-file=FILE option to use a different cache file; that is
  1770. # what configure does when it calls configure scripts in
  1771. # subdirectories, so they share the cache.
  1772. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1773. # config.status only pays attention to the cache file if you give it the
  1774. # --recheck option to rerun configure.
  1775. #
  1776. EOF
  1777. # The following way of writing the cache mishandles newlines in values,
  1778. # but we know of no workaround that is simple, portable, and efficient.
  1779. # So, don't put newlines in cache variables' values.
  1780. # Ultrix sh set writes to stderr and can't be redirected directly,
  1781. # and sets the high bit in the cache file unless we assign to the vars.
  1782. (set) 2>&1 |
  1783.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1784.   *ac_space=\ *)
  1785.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1786.     # turns \\\\ into \\, and sed turns \\ into \).
  1787.     sed -n \
  1788.       -e "s/'/'\\\\''/g" \
  1789.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1790.     ;;
  1791.   *)
  1792.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1793.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1794.     ;;
  1795.   esac >> confcache
  1796. if cmp -s $cache_file confcache; then
  1797.   :
  1798. else
  1799.   if test -w $cache_file; then
  1800.     echo "updating cache $cache_file"
  1801.     cat confcache > $cache_file
  1802.   else
  1803.     echo "not updating unwritable cache $cache_file"
  1804.   fi
  1805. fi
  1806. rm -f confcache
  1807.  
  1808.  
  1809. # Actually configure libtool.  ac_aux_dir is where install-sh is found.
  1810. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  1811. LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  1812. LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  1813. DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
  1814. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  1815. $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
  1816. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1817.  
  1818. # Reload cache, that may have been modified by ltconfig
  1819. if test -r "$cache_file"; then
  1820.   echo "loading cache $cache_file"
  1821.   . $cache_file
  1822. else
  1823.   echo "creating cache $cache_file"
  1824.   > $cache_file
  1825. fi
  1826.  
  1827.  
  1828. # This can be used to rebuild libtool when needed
  1829. LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
  1830.  
  1831. # Always use our own libtool.
  1832. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1833.  
  1834. # Redirect the config.log output again, so that the ltconfig log is not
  1835. # clobbered by the next message.
  1836. exec 5>>./config.log
  1837.  
  1838. CFLAGS="${ac_save_CFLAGS}"
  1839.  
  1840. # increase this when the shared lib becomes totally incompatible
  1841. LIB_MAJOR_VERSION=0
  1842.  
  1843. # increase this when changes are made, but they are upward compatible
  1844. # to previous versions
  1845. LIB_MINOR_VERSION=0
  1846.  
  1847. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  1848. echo "configure:1849: checking for AIX" >&5
  1849. cat > conftest.$ac_ext <<EOF
  1850. #line 1851 "configure"
  1851. #include "confdefs.h"
  1852. #ifdef _AIX
  1853.   yes
  1854. #endif
  1855.  
  1856. EOF
  1857. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1858.   egrep "yes" >/dev/null 2>&1; then
  1859.   rm -rf conftest*
  1860.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1861. #define _ALL_SOURCE 1
  1862. EOF
  1863.  
  1864. else
  1865.   rm -rf conftest*
  1866.   echo "$ac_t""no" 1>&6
  1867. fi
  1868. rm -f conftest*
  1869.  
  1870.  
  1871. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1872. echo "configure:1873: checking for POSIXized ISC" >&5
  1873. if test -d /etc/conf/kconfig.d &&
  1874.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1875. then
  1876.   echo "$ac_t""yes" 1>&6
  1877.   ISC=yes # If later tests want to check for ISC.
  1878.   cat >> confdefs.h <<\EOF
  1879. #define _POSIX_SOURCE 1
  1880. EOF
  1881.  
  1882.   if test "$GCC" = yes; then
  1883.     CC="$CC -posix"
  1884.   else
  1885.     CC="$CC -Xp"
  1886.   fi
  1887. else
  1888.   echo "$ac_t""no" 1>&6
  1889.   ISC=
  1890. fi
  1891.  
  1892. ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  1893. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1894. echo "configure:1895: checking for minix/config.h" >&5
  1895. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1896.   echo $ac_n "(cached) $ac_c" 1>&6
  1897. else
  1898.   cat > conftest.$ac_ext <<EOF
  1899. #line 1900 "configure"
  1900. #include "confdefs.h"
  1901. #include <minix/config.h>
  1902. EOF
  1903. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1904. { (eval echo configure:1905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1905. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1906. if test -z "$ac_err"; then
  1907.   rm -rf conftest*
  1908.   eval "ac_cv_header_$ac_safe=yes"
  1909. else
  1910.   echo "$ac_err" >&5
  1911.   echo "configure: failed program was:" >&5
  1912.   cat conftest.$ac_ext >&5
  1913.   rm -rf conftest*
  1914.   eval "ac_cv_header_$ac_safe=no"
  1915. fi
  1916. rm -f conftest*
  1917. fi
  1918. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1919.   echo "$ac_t""yes" 1>&6
  1920.   MINIX=yes
  1921. else
  1922.   echo "$ac_t""no" 1>&6
  1923. MINIX=
  1924. fi
  1925.  
  1926. if test "$MINIX" = yes; then
  1927.   cat >> confdefs.h <<\EOF
  1928. #define _POSIX_SOURCE 1
  1929. EOF
  1930.  
  1931.   cat >> confdefs.h <<\EOF
  1932. #define _POSIX_1_SOURCE 2
  1933. EOF
  1934.  
  1935.   cat >> confdefs.h <<\EOF
  1936. #define _MINIX 1
  1937. EOF
  1938.  
  1939. fi
  1940.  
  1941. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  1942. echo "configure:1943: checking for Cygwin environment" >&5
  1943. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  1944.   echo $ac_n "(cached) $ac_c" 1>&6
  1945. else
  1946.   cat > conftest.$ac_ext <<EOF
  1947. #line 1948 "configure"
  1948. #include "confdefs.h"
  1949.  
  1950. int main() {
  1951.  
  1952. #ifndef __CYGWIN__
  1953. #define __CYGWIN__ __CYGWIN32__
  1954. #endif
  1955. return __CYGWIN__;
  1956. ; return 0; }
  1957. EOF
  1958. if { (eval echo configure:1959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1959.   rm -rf conftest*
  1960.   ac_cv_cygwin=yes
  1961. else
  1962.   echo "configure: failed program was:" >&5
  1963.   cat conftest.$ac_ext >&5
  1964.   rm -rf conftest*
  1965.   ac_cv_cygwin=no
  1966. fi
  1967. rm -f conftest*
  1968. rm -f conftest*
  1969. fi
  1970.  
  1971. echo "$ac_t""$ac_cv_cygwin" 1>&6
  1972. CYGWIN=
  1973. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  1974. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  1975. echo "configure:1976: checking for mingw32 environment" >&5
  1976. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  1977.   echo $ac_n "(cached) $ac_c" 1>&6
  1978. else
  1979.   cat > conftest.$ac_ext <<EOF
  1980. #line 1981 "configure"
  1981. #include "confdefs.h"
  1982.  
  1983. int main() {
  1984. return __MINGW32__;
  1985. ; return 0; }
  1986. EOF
  1987. if { (eval echo configure:1988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1988.   rm -rf conftest*
  1989.   ac_cv_mingw32=yes
  1990. else
  1991.   echo "configure: failed program was:" >&5
  1992.   cat conftest.$ac_ext >&5
  1993.   rm -rf conftest*
  1994.   ac_cv_mingw32=no
  1995. fi
  1996. rm -f conftest*
  1997. rm -f conftest*
  1998. fi
  1999.  
  2000. echo "$ac_t""$ac_cv_mingw32" 1>&6
  2001. MINGW32=
  2002. test "$ac_cv_mingw32" = yes && MINGW32=yes
  2003.  
  2004.  
  2005. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  2006. echo "configure:2007: checking for executable suffix" >&5
  2007. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  2008.   echo $ac_n "(cached) $ac_c" 1>&6
  2009. else
  2010.   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  2011.   ac_cv_exeext=.exe
  2012. else
  2013.   rm -f conftest*
  2014.   echo 'int main () { return 0; }' > conftest.$ac_ext
  2015.   ac_cv_exeext=
  2016.   if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2017.     for file in conftest.*; do
  2018.       case $file in
  2019.       *.c | *.o | *.obj) ;;
  2020.       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  2021.       esac
  2022.     done
  2023.   else
  2024.     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  2025.   fi
  2026.   rm -f conftest*
  2027.   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  2028. fi
  2029. fi
  2030.  
  2031. EXEEXT=""
  2032. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  2033. echo "$ac_t""${ac_cv_exeext}" 1>&6
  2034. ac_exeext=$EXEEXT
  2035.  
  2036.  
  2037. if test "${ac_cv_cygwin}" = "yes"; then
  2038.     if test "${CC}" != "gcc"; then
  2039.         { echo "configure: error: Please use
  2040.                CC=gcc ./configure
  2041.             Abort this configure run and add "CC=gcc" or you will
  2042.             see errors and no lame.exe will be build." 1>&2; exit 1; }
  2043.     fi
  2044. fi
  2045.  
  2046.  
  2047.  
  2048.  
  2049. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  2050. echo "configure:2051: checking for ${CC-cc} option to accept ANSI C" >&5
  2051. if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
  2052.   echo $ac_n "(cached) $ac_c" 1>&6
  2053. else
  2054.   am_cv_prog_cc_stdc=no
  2055. ac_save_CC="$CC"
  2056. # Don't try gcc -ansi; that turns off useful extensions and
  2057. # breaks some systems' header files.
  2058. # AIX            -qlanglvl=ansi
  2059. # Ultrix and OSF/1    -std1
  2060. # HP-UX 10.20 and later    -Ae
  2061. # HP-UX older versions    -Aa -D_HPUX_SOURCE
  2062. # SVR4            -Xc -D__EXTENSIONS__
  2063. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2064. do
  2065.   CC="$ac_save_CC $ac_arg"
  2066.   cat > conftest.$ac_ext <<EOF
  2067. #line 2068 "configure"
  2068. #include "confdefs.h"
  2069. #include <stdarg.h>
  2070. #include <stdio.h>
  2071. #include <sys/types.h>
  2072. #include <sys/stat.h>
  2073. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  2074. struct buf { int x; };
  2075. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2076. static char *e (p, i)
  2077.      char **p;
  2078.      int i;
  2079. {
  2080.   return p[i];
  2081. }
  2082. static char *f (char * (*g) (char **, int), char **p, ...)
  2083. {
  2084.   char *s;
  2085.   va_list v;
  2086.   va_start (v,p);
  2087.   s = g (p, va_arg (v,int));
  2088.   va_end (v);
  2089.   return s;
  2090. }
  2091. int test (int i, double x);
  2092. struct s1 {int (*f) (int a);};
  2093. struct s2 {int (*f) (double a);};
  2094. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2095. int argc;
  2096. char **argv;
  2097.  
  2098. int main() {
  2099.  
  2100. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  2101.  
  2102. ; return 0; }
  2103. EOF
  2104. if { (eval echo configure:2105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2105.   rm -rf conftest*
  2106.   am_cv_prog_cc_stdc="$ac_arg"; break
  2107. else
  2108.   echo "configure: failed program was:" >&5
  2109.   cat conftest.$ac_ext >&5
  2110. fi
  2111. rm -f conftest*
  2112. done
  2113. CC="$ac_save_CC"
  2114.  
  2115. fi
  2116.  
  2117. if test -z "$am_cv_prog_cc_stdc"; then
  2118.   echo "$ac_t""none needed" 1>&6
  2119. else
  2120.   echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
  2121. fi
  2122. case "x$am_cv_prog_cc_stdc" in
  2123.   x|xno) ;;
  2124.   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  2125. esac
  2126.  
  2127.  
  2128.  
  2129.  
  2130. echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  2131. echo "configure:2132: checking for function prototypes" >&5
  2132. if test "$am_cv_prog_cc_stdc" != no; then
  2133.   echo "$ac_t""yes" 1>&6
  2134.   cat >> confdefs.h <<\EOF
  2135. #define PROTOTYPES 1
  2136. EOF
  2137.  
  2138.   U= ANSI2KNR=
  2139. else
  2140.   echo "$ac_t""no" 1>&6
  2141.   U=_ ANSI2KNR=./ansi2knr
  2142. fi
  2143. # Ensure some checks needed by ansi2knr itself.
  2144. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2145. echo "configure:2146: checking for ANSI C header files" >&5
  2146. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2147.   echo $ac_n "(cached) $ac_c" 1>&6
  2148. else
  2149.   cat > conftest.$ac_ext <<EOF
  2150. #line 2151 "configure"
  2151. #include "confdefs.h"
  2152. #include <stdlib.h>
  2153. #include <stdarg.h>
  2154. #include <string.h>
  2155. #include <float.h>
  2156. EOF
  2157. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2158. { (eval echo configure:2159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2159. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2160. if test -z "$ac_err"; then
  2161.   rm -rf conftest*
  2162.   ac_cv_header_stdc=yes
  2163. else
  2164.   echo "$ac_err" >&5
  2165.   echo "configure: failed program was:" >&5
  2166.   cat conftest.$ac_ext >&5
  2167.   rm -rf conftest*
  2168.   ac_cv_header_stdc=no
  2169. fi
  2170. rm -f conftest*
  2171.  
  2172. if test $ac_cv_header_stdc = yes; then
  2173.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2174. cat > conftest.$ac_ext <<EOF
  2175. #line 2176 "configure"
  2176. #include "confdefs.h"
  2177. #include <string.h>
  2178. EOF
  2179. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2180.   egrep "memchr" >/dev/null 2>&1; then
  2181.   :
  2182. else
  2183.   rm -rf conftest*
  2184.   ac_cv_header_stdc=no
  2185. fi
  2186. rm -f conftest*
  2187.  
  2188. fi
  2189.  
  2190. if test $ac_cv_header_stdc = yes; then
  2191.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2192. cat > conftest.$ac_ext <<EOF
  2193. #line 2194 "configure"
  2194. #include "confdefs.h"
  2195. #include <stdlib.h>
  2196. EOF
  2197. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2198.   egrep "free" >/dev/null 2>&1; then
  2199.   :
  2200. else
  2201.   rm -rf conftest*
  2202.   ac_cv_header_stdc=no
  2203. fi
  2204. rm -f conftest*
  2205.  
  2206. fi
  2207.  
  2208. if test $ac_cv_header_stdc = yes; then
  2209.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2210. if test "$cross_compiling" = yes; then
  2211.   :
  2212. else
  2213.   cat > conftest.$ac_ext <<EOF
  2214. #line 2215 "configure"
  2215. #include "confdefs.h"
  2216. #include <ctype.h>
  2217. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2218. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2219. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2220. int main () { int i; for (i = 0; i < 256; i++)
  2221. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2222. exit (0); }
  2223.  
  2224. EOF
  2225. if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2226. then
  2227.   :
  2228. else
  2229.   echo "configure: failed program was:" >&5
  2230.   cat conftest.$ac_ext >&5
  2231.   rm -fr conftest*
  2232.   ac_cv_header_stdc=no
  2233. fi
  2234. rm -fr conftest*
  2235. fi
  2236.  
  2237. fi
  2238. fi
  2239.  
  2240. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2241. if test $ac_cv_header_stdc = yes; then
  2242.   cat >> confdefs.h <<\EOF
  2243. #define STDC_HEADERS 1
  2244. EOF
  2245.  
  2246. fi
  2247.  
  2248. for ac_hdr in string.h
  2249. do
  2250. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2251. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2252. echo "configure:2253: checking for $ac_hdr" >&5
  2253. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2254.   echo $ac_n "(cached) $ac_c" 1>&6
  2255. else
  2256.   cat > conftest.$ac_ext <<EOF
  2257. #line 2258 "configure"
  2258. #include "confdefs.h"
  2259. #include <$ac_hdr>
  2260. EOF
  2261. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2262. { (eval echo configure:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2263. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2264. if test -z "$ac_err"; then
  2265.   rm -rf conftest*
  2266.   eval "ac_cv_header_$ac_safe=yes"
  2267. else
  2268.   echo "$ac_err" >&5
  2269.   echo "configure: failed program was:" >&5
  2270.   cat conftest.$ac_ext >&5
  2271.   rm -rf conftest*
  2272.   eval "ac_cv_header_$ac_safe=no"
  2273. fi
  2274. rm -f conftest*
  2275. fi
  2276. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2277.   echo "$ac_t""yes" 1>&6
  2278.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2279.   cat >> confdefs.h <<EOF
  2280. #define $ac_tr_hdr 1
  2281. EOF
  2282.  
  2283. else
  2284.   echo "$ac_t""no" 1>&6
  2285. fi
  2286. done
  2287.  
  2288.  
  2289.  
  2290. ac_safe=`echo "dmalloc.h" | sed 'y%./+-%__p_%'`
  2291. echo $ac_n "checking for dmalloc.h""... $ac_c" 1>&6
  2292. echo "configure:2293: checking for dmalloc.h" >&5
  2293. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2294.   echo $ac_n "(cached) $ac_c" 1>&6
  2295. else
  2296.   cat > conftest.$ac_ext <<EOF
  2297. #line 2298 "configure"
  2298. #include "confdefs.h"
  2299. #include <dmalloc.h>
  2300. EOF
  2301. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2302. { (eval echo configure:2303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2303. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2304. if test -z "$ac_err"; then
  2305.   rm -rf conftest*
  2306.   eval "ac_cv_header_$ac_safe=yes"
  2307. else
  2308.   echo "$ac_err" >&5
  2309.   echo "configure: failed program was:" >&5
  2310.   cat conftest.$ac_ext >&5
  2311.   rm -rf conftest*
  2312.   eval "ac_cv_header_$ac_safe=no"
  2313. fi
  2314. rm -f conftest*
  2315. fi
  2316. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2317.   echo "$ac_t""yes" 1>&6
  2318.   :
  2319. else
  2320.   echo "$ac_t""no" 1>&6
  2321. fi
  2322.  
  2323. if test "$ac_cv_header_dmalloc_h" = "yes"; then
  2324.     echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
  2325. echo "configure:2326: checking if malloc debugging is wanted" >&5
  2326. # Check whether --with-dmalloc or --without-dmalloc was given.
  2327. if test "${with_dmalloc+set}" = set; then
  2328.   withval="$with_dmalloc"
  2329.   if test "$withval" = yes; then
  2330.   echo "$ac_t""yes" 1>&6
  2331.   cat >> confdefs.h <<\EOF
  2332. #define WITH_DMALLOC 1
  2333. EOF
  2334.  
  2335.   LIBS="$LIBS -ldmalloc"
  2336.   LDFLAGS="$LDFLAGS -g"
  2337. else
  2338.   echo "$ac_t""no" 1>&6
  2339. fi
  2340. else
  2341.   echo "$ac_t""no" 1>&6
  2342. fi
  2343.  
  2344.  
  2345. fi
  2346.  
  2347. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2348. echo "configure:2349: checking for ANSI C header files" >&5
  2349. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2350.   echo $ac_n "(cached) $ac_c" 1>&6
  2351. else
  2352.   cat > conftest.$ac_ext <<EOF
  2353. #line 2354 "configure"
  2354. #include "confdefs.h"
  2355. #include <stdlib.h>
  2356. #include <stdarg.h>
  2357. #include <string.h>
  2358. #include <float.h>
  2359. EOF
  2360. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2361. { (eval echo configure:2362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2362. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2363. if test -z "$ac_err"; then
  2364.   rm -rf conftest*
  2365.   ac_cv_header_stdc=yes
  2366. else
  2367.   echo "$ac_err" >&5
  2368.   echo "configure: failed program was:" >&5
  2369.   cat conftest.$ac_ext >&5
  2370.   rm -rf conftest*
  2371.   ac_cv_header_stdc=no
  2372. fi
  2373. rm -f conftest*
  2374.  
  2375. if test $ac_cv_header_stdc = yes; then
  2376.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2377. cat > conftest.$ac_ext <<EOF
  2378. #line 2379 "configure"
  2379. #include "confdefs.h"
  2380. #include <string.h>
  2381. EOF
  2382. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2383.   egrep "memchr" >/dev/null 2>&1; then
  2384.   :
  2385. else
  2386.   rm -rf conftest*
  2387.   ac_cv_header_stdc=no
  2388. fi
  2389. rm -f conftest*
  2390.  
  2391. fi
  2392.  
  2393. if test $ac_cv_header_stdc = yes; then
  2394.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2395. cat > conftest.$ac_ext <<EOF
  2396. #line 2397 "configure"
  2397. #include "confdefs.h"
  2398. #include <stdlib.h>
  2399. EOF
  2400. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2401.   egrep "free" >/dev/null 2>&1; then
  2402.   :
  2403. else
  2404.   rm -rf conftest*
  2405.   ac_cv_header_stdc=no
  2406. fi
  2407. rm -f conftest*
  2408.  
  2409. fi
  2410.  
  2411. if test $ac_cv_header_stdc = yes; then
  2412.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2413. if test "$cross_compiling" = yes; then
  2414.   :
  2415. else
  2416.   cat > conftest.$ac_ext <<EOF
  2417. #line 2418 "configure"
  2418. #include "confdefs.h"
  2419. #include <ctype.h>
  2420. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2421. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2422. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2423. int main () { int i; for (i = 0; i < 256; i++)
  2424. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2425. exit (0); }
  2426.  
  2427. EOF
  2428. if { (eval echo configure:2429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2429. then
  2430.   :
  2431. else
  2432.   echo "configure: failed program was:" >&5
  2433.   cat conftest.$ac_ext >&5
  2434.   rm -fr conftest*
  2435.   ac_cv_header_stdc=no
  2436. fi
  2437. rm -fr conftest*
  2438. fi
  2439.  
  2440. fi
  2441. fi
  2442.  
  2443. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2444. if test $ac_cv_header_stdc = yes; then
  2445.   cat >> confdefs.h <<\EOF
  2446. #define STDC_HEADERS 1
  2447. EOF
  2448.  
  2449. fi
  2450.  
  2451. for ac_hdr in \
  2452.          errno.h \
  2453.          fcntl.h \
  2454.          limits.h \
  2455.          string.h \
  2456.          sys/soundcard.h \
  2457.          sys/time.h \
  2458.          unistd.h \
  2459.          linux/soundcard.h
  2460. do
  2461. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2462. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2463. echo "configure:2464: checking for $ac_hdr" >&5
  2464. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2465.   echo $ac_n "(cached) $ac_c" 1>&6
  2466. else
  2467.   cat > conftest.$ac_ext <<EOF
  2468. #line 2469 "configure"
  2469. #include "confdefs.h"
  2470. #include <$ac_hdr>
  2471. EOF
  2472. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2473. { (eval echo configure:2474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2474. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2475. if test -z "$ac_err"; then
  2476.   rm -rf conftest*
  2477.   eval "ac_cv_header_$ac_safe=yes"
  2478. else
  2479.   echo "$ac_err" >&5
  2480.   echo "configure: failed program was:" >&5
  2481.   cat conftest.$ac_ext >&5
  2482.   rm -rf conftest*
  2483.   eval "ac_cv_header_$ac_safe=no"
  2484. fi
  2485. rm -f conftest*
  2486. fi
  2487. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2488.   echo "$ac_t""yes" 1>&6
  2489.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2490.   cat >> confdefs.h <<EOF
  2491. #define $ac_tr_hdr 1
  2492. EOF
  2493.  
  2494. else
  2495.   echo "$ac_t""no" 1>&6
  2496. fi
  2497. done
  2498.  
  2499.  
  2500. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2501. echo "configure:2502: checking for working const" >&5
  2502. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2503.   echo $ac_n "(cached) $ac_c" 1>&6
  2504. else
  2505.   cat > conftest.$ac_ext <<EOF
  2506. #line 2507 "configure"
  2507. #include "confdefs.h"
  2508.  
  2509. int main() {
  2510.  
  2511. /* Ultrix mips cc rejects this.  */
  2512. typedef int charset[2]; const charset x;
  2513. /* SunOS 4.1.1 cc rejects this.  */
  2514. char const *const *ccp;
  2515. char **p;
  2516. /* NEC SVR4.0.2 mips cc rejects this.  */
  2517. struct point {int x, y;};
  2518. static struct point const zero = {0,0};
  2519. /* AIX XL C 1.02.0.0 rejects this.
  2520.    It does not let you subtract one const X* pointer from another in an arm
  2521.    of an if-expression whose if-part is not a constant expression */
  2522. const char *g = "string";
  2523. ccp = &g + (g ? g-g : 0);
  2524. /* HPUX 7.0 cc rejects these. */
  2525. ++ccp;
  2526. p = (char**) ccp;
  2527. ccp = (char const *const *) p;
  2528. { /* SCO 3.2v4 cc rejects this.  */
  2529.   char *t;
  2530.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  2531.  
  2532.   *t++ = 0;
  2533. }
  2534. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  2535.   int x[] = {25, 17};
  2536.   const int *foo = &x[0];
  2537.   ++foo;
  2538. }
  2539. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2540.   typedef const int *iptr;
  2541.   iptr p = 0;
  2542.   ++p;
  2543. }
  2544. { /* AIX XL C 1.02.0.0 rejects this saying
  2545.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2546.   struct s { int j; const int *ap[3]; };
  2547.   struct s *b; b->j = 5;
  2548. }
  2549. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2550.   const int foo = 10;
  2551. }
  2552.  
  2553. ; return 0; }
  2554. EOF
  2555. if { (eval echo configure:2556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2556.   rm -rf conftest*
  2557.   ac_cv_c_const=yes
  2558. else
  2559.   echo "configure: failed program was:" >&5
  2560.   cat conftest.$ac_ext >&5
  2561.   rm -rf conftest*
  2562.   ac_cv_c_const=no
  2563. fi
  2564. rm -f conftest*
  2565. fi
  2566.  
  2567. echo "$ac_t""$ac_cv_c_const" 1>&6
  2568. if test $ac_cv_c_const = no; then
  2569.   cat >> confdefs.h <<\EOF
  2570. #define const 
  2571. EOF
  2572.  
  2573. fi
  2574.  
  2575. echo $ac_n "checking for inline""... $ac_c" 1>&6
  2576. echo "configure:2577: checking for inline" >&5
  2577. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  2578.   echo $ac_n "(cached) $ac_c" 1>&6
  2579. else
  2580.   ac_cv_c_inline=no
  2581. for ac_kw in inline __inline__ __inline; do
  2582.   cat > conftest.$ac_ext <<EOF
  2583. #line 2584 "configure"
  2584. #include "confdefs.h"
  2585.  
  2586. int main() {
  2587. } $ac_kw foo() {
  2588. ; return 0; }
  2589. EOF
  2590. if { (eval echo configure:2591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2591.   rm -rf conftest*
  2592.   ac_cv_c_inline=$ac_kw; break
  2593. else
  2594.   echo "configure: failed program was:" >&5
  2595.   cat conftest.$ac_ext >&5
  2596. fi
  2597. rm -f conftest*
  2598. done
  2599.  
  2600. fi
  2601.  
  2602. echo "$ac_t""$ac_cv_c_inline" 1>&6
  2603. case "$ac_cv_c_inline" in
  2604.   inline | yes) ;;
  2605.   no) cat >> confdefs.h <<\EOF
  2606. #define inline 
  2607. EOF
  2608.  ;;
  2609.   *)  cat >> confdefs.h <<EOF
  2610. #define inline $ac_cv_c_inline
  2611. EOF
  2612.  ;;
  2613. esac
  2614.  
  2615. if test ${cross_compiling} = "no"; then
  2616.     echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  2617. echo "configure:2618: checking whether byte ordering is bigendian" >&5
  2618. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  2619.   echo $ac_n "(cached) $ac_c" 1>&6
  2620. else
  2621.   ac_cv_c_bigendian=unknown
  2622. # See if sys/param.h defines the BYTE_ORDER macro.
  2623. cat > conftest.$ac_ext <<EOF
  2624. #line 2625 "configure"
  2625. #include "confdefs.h"
  2626. #include <sys/types.h>
  2627. #include <sys/param.h>
  2628. int main() {
  2629.  
  2630. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2631.  bogus endian macros
  2632. #endif
  2633. ; return 0; }
  2634. EOF
  2635. if { (eval echo configure:2636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2636.   rm -rf conftest*
  2637.   # It does; now see whether it defined to BIG_ENDIAN or not.
  2638. cat > conftest.$ac_ext <<EOF
  2639. #line 2640 "configure"
  2640. #include "confdefs.h"
  2641. #include <sys/types.h>
  2642. #include <sys/param.h>
  2643. int main() {
  2644.  
  2645. #if BYTE_ORDER != BIG_ENDIAN
  2646.  not big endian
  2647. #endif
  2648. ; return 0; }
  2649. EOF
  2650. if { (eval echo configure:2651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2651.   rm -rf conftest*
  2652.   ac_cv_c_bigendian=yes
  2653. else
  2654.   echo "configure: failed program was:" >&5
  2655.   cat conftest.$ac_ext >&5
  2656.   rm -rf conftest*
  2657.   ac_cv_c_bigendian=no
  2658. fi
  2659. rm -f conftest*
  2660. else
  2661.   echo "configure: failed program was:" >&5
  2662.   cat conftest.$ac_ext >&5
  2663. fi
  2664. rm -f conftest*
  2665. if test $ac_cv_c_bigendian = unknown; then
  2666. if test "$cross_compiling" = yes; then
  2667.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2668. else
  2669.   cat > conftest.$ac_ext <<EOF
  2670. #line 2671 "configure"
  2671. #include "confdefs.h"
  2672. main () {
  2673.   /* Are we little or big endian?  From Harbison&Steele.  */
  2674.   union
  2675.   {
  2676.     long l;
  2677.     char c[sizeof (long)];
  2678.   } u;
  2679.   u.l = 1;
  2680.   exit (u.c[sizeof (long) - 1] == 1);
  2681. }
  2682. EOF
  2683. if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2684. then
  2685.   ac_cv_c_bigendian=no
  2686. else
  2687.   echo "configure: failed program was:" >&5
  2688.   cat conftest.$ac_ext >&5
  2689.   rm -fr conftest*
  2690.   ac_cv_c_bigendian=yes
  2691. fi
  2692. rm -fr conftest*
  2693. fi
  2694.  
  2695. fi
  2696. fi
  2697.  
  2698. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  2699. if test $ac_cv_c_bigendian = yes; then
  2700.   cat >> confdefs.h <<\EOF
  2701. #define WORDS_BIGENDIAN 1
  2702. EOF
  2703.  
  2704. fi
  2705.  
  2706. fi
  2707.  
  2708. if test "${GCC}" = "yes"; then
  2709.     echo $ac_n "checking version of GCC""... $ac_c" 1>&6
  2710. echo "configure:2711: checking version of GCC" >&5
  2711.     GCC_version=`${CC} --version`
  2712.     echo "$ac_t""${GCC_version}" 1>&6
  2713. fi
  2714.  
  2715. echo $ac_n "checking size of short""... $ac_c" 1>&6
  2716. echo "configure:2717: checking size of short" >&5
  2717. if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
  2718.   echo $ac_n "(cached) $ac_c" 1>&6
  2719. else
  2720.   if test "$cross_compiling" = yes; then
  2721.   ac_cv_sizeof_short=2
  2722. else
  2723.   cat > conftest.$ac_ext <<EOF
  2724. #line 2725 "configure"
  2725. #include "confdefs.h"
  2726. #include <stdio.h>
  2727. main()
  2728. {
  2729.   FILE *f=fopen("conftestval", "w");
  2730.   if (!f) exit(1);
  2731.   fprintf(f, "%d\n", sizeof(short));
  2732.   exit(0);
  2733. }
  2734. EOF
  2735. if { (eval echo configure:2736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2736. then
  2737.   ac_cv_sizeof_short=`cat conftestval`
  2738. else
  2739.   echo "configure: failed program was:" >&5
  2740.   cat conftest.$ac_ext >&5
  2741.   rm -fr conftest*
  2742.   ac_cv_sizeof_short=0
  2743. fi
  2744. rm -fr conftest*
  2745. fi
  2746.  
  2747. fi
  2748. echo "$ac_t""$ac_cv_sizeof_short" 1>&6
  2749. cat >> confdefs.h <<EOF
  2750. #define SIZEOF_SHORT $ac_cv_sizeof_short
  2751. EOF
  2752.  
  2753.  
  2754. echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6
  2755. echo "configure:2756: checking size of unsigned short" >&5
  2756. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then
  2757.   echo $ac_n "(cached) $ac_c" 1>&6
  2758. else
  2759.   if test "$cross_compiling" = yes; then
  2760.   ac_cv_sizeof_unsigned_short=2
  2761. else
  2762.   cat > conftest.$ac_ext <<EOF
  2763. #line 2764 "configure"
  2764. #include "confdefs.h"
  2765. #include <stdio.h>
  2766. main()
  2767. {
  2768.   FILE *f=fopen("conftestval", "w");
  2769.   if (!f) exit(1);
  2770.   fprintf(f, "%d\n", sizeof(unsigned short));
  2771.   exit(0);
  2772. }
  2773. EOF
  2774. if { (eval echo configure:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2775. then
  2776.   ac_cv_sizeof_unsigned_short=`cat conftestval`
  2777. else
  2778.   echo "configure: failed program was:" >&5
  2779.   cat conftest.$ac_ext >&5
  2780.   rm -fr conftest*
  2781.   ac_cv_sizeof_unsigned_short=0
  2782. fi
  2783. rm -fr conftest*
  2784. fi
  2785.  
  2786. fi
  2787. echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6
  2788. cat >> confdefs.h <<EOF
  2789. #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  2790. EOF
  2791.  
  2792.  
  2793. echo $ac_n "checking size of int""... $ac_c" 1>&6
  2794. echo "configure:2795: checking size of int" >&5
  2795. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  2796.   echo $ac_n "(cached) $ac_c" 1>&6
  2797. else
  2798.   if test "$cross_compiling" = yes; then
  2799.   ac_cv_sizeof_int=4
  2800. else
  2801.   cat > conftest.$ac_ext <<EOF
  2802. #line 2803 "configure"
  2803. #include "confdefs.h"
  2804. #include <stdio.h>
  2805. main()
  2806. {
  2807.   FILE *f=fopen("conftestval", "w");
  2808.   if (!f) exit(1);
  2809.   fprintf(f, "%d\n", sizeof(int));
  2810.   exit(0);
  2811. }
  2812. EOF
  2813. if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2814. then
  2815.   ac_cv_sizeof_int=`cat conftestval`
  2816. else
  2817.   echo "configure: failed program was:" >&5
  2818.   cat conftest.$ac_ext >&5
  2819.   rm -fr conftest*
  2820.   ac_cv_sizeof_int=0
  2821. fi
  2822. rm -fr conftest*
  2823. fi
  2824.  
  2825. fi
  2826. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  2827. cat >> confdefs.h <<EOF
  2828. #define SIZEOF_INT $ac_cv_sizeof_int
  2829. EOF
  2830.  
  2831.  
  2832. echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
  2833. echo "configure:2834: checking size of unsigned int" >&5
  2834. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
  2835.   echo $ac_n "(cached) $ac_c" 1>&6
  2836. else
  2837.   if test "$cross_compiling" = yes; then
  2838.   ac_cv_sizeof_unsigned_int=4
  2839. else
  2840.   cat > conftest.$ac_ext <<EOF
  2841. #line 2842 "configure"
  2842. #include "confdefs.h"
  2843. #include <stdio.h>
  2844. main()
  2845. {
  2846.   FILE *f=fopen("conftestval", "w");
  2847.   if (!f) exit(1);
  2848.   fprintf(f, "%d\n", sizeof(unsigned int));
  2849.   exit(0);
  2850. }
  2851. EOF
  2852. if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2853. then
  2854.   ac_cv_sizeof_unsigned_int=`cat conftestval`
  2855. else
  2856.   echo "configure: failed program was:" >&5
  2857.   cat conftest.$ac_ext >&5
  2858.   rm -fr conftest*
  2859.   ac_cv_sizeof_unsigned_int=0
  2860. fi
  2861. rm -fr conftest*
  2862. fi
  2863.  
  2864. fi
  2865. echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
  2866. cat >> confdefs.h <<EOF
  2867. #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  2868. EOF
  2869.  
  2870.  
  2871. echo $ac_n "checking size of long""... $ac_c" 1>&6
  2872. echo "configure:2873: checking size of long" >&5
  2873. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  2874.   echo $ac_n "(cached) $ac_c" 1>&6
  2875. else
  2876.   if test "$cross_compiling" = yes; then
  2877.   ac_cv_sizeof_long=4
  2878. else
  2879.   cat > conftest.$ac_ext <<EOF
  2880. #line 2881 "configure"
  2881. #include "confdefs.h"
  2882. #include <stdio.h>
  2883. main()
  2884. {
  2885.   FILE *f=fopen("conftestval", "w");
  2886.   if (!f) exit(1);
  2887.   fprintf(f, "%d\n", sizeof(long));
  2888.   exit(0);
  2889. }
  2890. EOF
  2891. if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2892. then
  2893.   ac_cv_sizeof_long=`cat conftestval`
  2894. else
  2895.   echo "configure: failed program was:" >&5
  2896.   cat conftest.$ac_ext >&5
  2897.   rm -fr conftest*
  2898.   ac_cv_sizeof_long=0
  2899. fi
  2900. rm -fr conftest*
  2901. fi
  2902.  
  2903. fi
  2904. echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  2905. cat >> confdefs.h <<EOF
  2906. #define SIZEOF_LONG $ac_cv_sizeof_long
  2907. EOF
  2908.  
  2909.  
  2910. echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
  2911. echo "configure:2912: checking size of unsigned long" >&5
  2912. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
  2913.   echo $ac_n "(cached) $ac_c" 1>&6
  2914. else
  2915.   if test "$cross_compiling" = yes; then
  2916.   ac_cv_sizeof_unsigned_long=4
  2917. else
  2918.   cat > conftest.$ac_ext <<EOF
  2919. #line 2920 "configure"
  2920. #include "confdefs.h"
  2921. #include <stdio.h>
  2922. main()
  2923. {
  2924.   FILE *f=fopen("conftestval", "w");
  2925.   if (!f) exit(1);
  2926.   fprintf(f, "%d\n", sizeof(unsigned long));
  2927.   exit(0);
  2928. }
  2929. EOF
  2930. if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2931. then
  2932.   ac_cv_sizeof_unsigned_long=`cat conftestval`
  2933. else
  2934.   echo "configure: failed program was:" >&5
  2935.   cat conftest.$ac_ext >&5
  2936.   rm -fr conftest*
  2937.   ac_cv_sizeof_unsigned_long=0
  2938. fi
  2939. rm -fr conftest*
  2940. fi
  2941.  
  2942. fi
  2943. echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
  2944. cat >> confdefs.h <<EOF
  2945. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  2946. EOF
  2947.  
  2948.  
  2949. echo $ac_n "checking size of long long""... $ac_c" 1>&6
  2950. echo "configure:2951: checking size of long long" >&5
  2951. if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
  2952.   echo $ac_n "(cached) $ac_c" 1>&6
  2953. else
  2954.   if test "$cross_compiling" = yes; then
  2955.   ac_cv_sizeof_long_long=8
  2956. else
  2957.   cat > conftest.$ac_ext <<EOF
  2958. #line 2959 "configure"
  2959. #include "confdefs.h"
  2960. #include <stdio.h>
  2961. main()
  2962. {
  2963.   FILE *f=fopen("conftestval", "w");
  2964.   if (!f) exit(1);
  2965.   fprintf(f, "%d\n", sizeof(long long));
  2966.   exit(0);
  2967. }
  2968. EOF
  2969. if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2970. then
  2971.   ac_cv_sizeof_long_long=`cat conftestval`
  2972. else
  2973.   echo "configure: failed program was:" >&5
  2974.   cat conftest.$ac_ext >&5
  2975.   rm -fr conftest*
  2976.   ac_cv_sizeof_long_long=0
  2977. fi
  2978. rm -fr conftest*
  2979. fi
  2980.  
  2981. fi
  2982. echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
  2983. cat >> confdefs.h <<EOF
  2984. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  2985. EOF
  2986.  
  2987.  
  2988. echo $ac_n "checking size of unsigned long long""... $ac_c" 1>&6
  2989. echo "configure:2990: checking size of unsigned long long" >&5
  2990. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then
  2991.   echo $ac_n "(cached) $ac_c" 1>&6
  2992. else
  2993.   if test "$cross_compiling" = yes; then
  2994.   ac_cv_sizeof_unsigned_long_long=8
  2995. else
  2996.   cat > conftest.$ac_ext <<EOF
  2997. #line 2998 "configure"
  2998. #include "confdefs.h"
  2999. #include <stdio.h>
  3000. main()
  3001. {
  3002.   FILE *f=fopen("conftestval", "w");
  3003.   if (!f) exit(1);
  3004.   fprintf(f, "%d\n", sizeof(unsigned long long));
  3005.   exit(0);
  3006. }
  3007. EOF
  3008. if { (eval echo configure:3009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3009. then
  3010.   ac_cv_sizeof_unsigned_long_long=`cat conftestval`
  3011. else
  3012.   echo "configure: failed program was:" >&5
  3013.   cat conftest.$ac_ext >&5
  3014.   rm -fr conftest*
  3015.   ac_cv_sizeof_unsigned_long_long=0
  3016. fi
  3017. rm -fr conftest*
  3018. fi
  3019.  
  3020. fi
  3021. echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6
  3022. cat >> confdefs.h <<EOF
  3023. #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
  3024. EOF
  3025.  
  3026.  
  3027. echo $ac_n "checking size of float""... $ac_c" 1>&6
  3028. echo "configure:3029: checking size of float" >&5
  3029. if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
  3030.   echo $ac_n "(cached) $ac_c" 1>&6
  3031. else
  3032.   if test "$cross_compiling" = yes; then
  3033.   ac_cv_sizeof_float=4
  3034. else
  3035.   cat > conftest.$ac_ext <<EOF
  3036. #line 3037 "configure"
  3037. #include "confdefs.h"
  3038. #include <stdio.h>
  3039. main()
  3040. {
  3041.   FILE *f=fopen("conftestval", "w");
  3042.   if (!f) exit(1);
  3043.   fprintf(f, "%d\n", sizeof(float));
  3044.   exit(0);
  3045. }
  3046. EOF
  3047. if { (eval echo configure:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3048. then
  3049.   ac_cv_sizeof_float=`cat conftestval`
  3050. else
  3051.   echo "configure: failed program was:" >&5
  3052.   cat conftest.$ac_ext >&5
  3053.   rm -fr conftest*
  3054.   ac_cv_sizeof_float=0
  3055. fi
  3056. rm -fr conftest*
  3057. fi
  3058.  
  3059. fi
  3060. echo "$ac_t""$ac_cv_sizeof_float" 1>&6
  3061. cat >> confdefs.h <<EOF
  3062. #define SIZEOF_FLOAT $ac_cv_sizeof_float
  3063. EOF
  3064.  
  3065.  
  3066. echo $ac_n "checking size of double""... $ac_c" 1>&6
  3067. echo "configure:3068: checking size of double" >&5
  3068. if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
  3069.   echo $ac_n "(cached) $ac_c" 1>&6
  3070. else
  3071.   if test "$cross_compiling" = yes; then
  3072.   ac_cv_sizeof_double=8
  3073. else
  3074.   cat > conftest.$ac_ext <<EOF
  3075. #line 3076 "configure"
  3076. #include "confdefs.h"
  3077. #include <stdio.h>
  3078. main()
  3079. {
  3080.   FILE *f=fopen("conftestval", "w");
  3081.   if (!f) exit(1);
  3082.   fprintf(f, "%d\n", sizeof(double));
  3083.   exit(0);
  3084. }
  3085. EOF
  3086. if { (eval echo configure:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3087. then
  3088.   ac_cv_sizeof_double=`cat conftestval`
  3089. else
  3090.   echo "configure: failed program was:" >&5
  3091.   cat conftest.$ac_ext >&5
  3092.   rm -fr conftest*
  3093.   ac_cv_sizeof_double=0
  3094. fi
  3095. rm -fr conftest*
  3096. fi
  3097.  
  3098. fi
  3099. echo "$ac_t""$ac_cv_sizeof_double" 1>&6
  3100. cat >> confdefs.h <<EOF
  3101. #define SIZEOF_DOUBLE $ac_cv_sizeof_double
  3102. EOF
  3103.  
  3104.  
  3105.  
  3106. if test ${cross_compiling} = "no"; then
  3107.     echo $ac_n "checking for long double""... $ac_c" 1>&6
  3108. echo "configure:3109: checking for long double" >&5
  3109. if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
  3110.   echo $ac_n "(cached) $ac_c" 1>&6
  3111. else
  3112.   if test "$GCC" = yes; then
  3113.   ac_cv_c_long_double=yes
  3114. else
  3115. if test "$cross_compiling" = yes; then
  3116.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3117. else
  3118.   cat > conftest.$ac_ext <<EOF
  3119. #line 3120 "configure"
  3120. #include "confdefs.h"
  3121. int main() {
  3122. /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
  3123. long double foo = 0.0;
  3124. /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
  3125. exit(sizeof(long double) < sizeof(double)); }
  3126. EOF
  3127. if { (eval echo configure:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3128. then
  3129.   ac_cv_c_long_double=yes
  3130. else
  3131.   echo "configure: failed program was:" >&5
  3132.   cat conftest.$ac_ext >&5
  3133.   rm -fr conftest*
  3134.   ac_cv_c_long_double=no
  3135. fi
  3136. rm -fr conftest*
  3137. fi
  3138.  
  3139. fi
  3140. fi
  3141.  
  3142. echo "$ac_t""$ac_cv_c_long_double" 1>&6
  3143. if test $ac_cv_c_long_double = yes; then
  3144.   cat >> confdefs.h <<\EOF
  3145. #define HAVE_LONG_DOUBLE 1
  3146. EOF
  3147.  
  3148. fi
  3149.  
  3150. fi
  3151. if test "${ac_cv_c_have_long_double}" = "yes" ; then
  3152.     echo $ac_n "checking size of long double""... $ac_c" 1>&6
  3153. echo "configure:3154: checking size of long double" >&5
  3154. if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
  3155.   echo $ac_n "(cached) $ac_c" 1>&6
  3156. else
  3157.   if test "$cross_compiling" = yes; then
  3158.   ac_cv_sizeof_long_double=12
  3159. else
  3160.   cat > conftest.$ac_ext <<EOF
  3161. #line 3162 "configure"
  3162. #include "confdefs.h"
  3163. #include <stdio.h>
  3164. main()
  3165. {
  3166.   FILE *f=fopen("conftestval", "w");
  3167.   if (!f) exit(1);
  3168.   fprintf(f, "%d\n", sizeof(long double));
  3169.   exit(0);
  3170. }
  3171. EOF
  3172. if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3173. then
  3174.   ac_cv_sizeof_long_double=`cat conftestval`
  3175. else
  3176.   echo "configure: failed program was:" >&5
  3177.   cat conftest.$ac_ext >&5
  3178.   rm -fr conftest*
  3179.   ac_cv_sizeof_long_double=0
  3180. fi
  3181. rm -fr conftest*
  3182. fi
  3183.  
  3184. fi
  3185. echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
  3186. cat >> confdefs.h <<EOF
  3187. #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
  3188. EOF
  3189.  
  3190.  
  3191. fi
  3192.  
  3193. echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
  3194. echo "configure:3195: checking for uint8_t" >&5
  3195. if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
  3196.   echo $ac_n "(cached) $ac_c" 1>&6
  3197. else
  3198.   cat > conftest.$ac_ext <<EOF
  3199. #line 3200 "configure"
  3200. #include "confdefs.h"
  3201. #include <sys/types.h>
  3202. #if STDC_HEADERS
  3203. #include <stdlib.h>
  3204. #include <stddef.h>
  3205. #endif
  3206. EOF
  3207. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3208.   egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3209.   rm -rf conftest*
  3210.   ac_cv_type_uint8_t=yes
  3211. else
  3212.   rm -rf conftest*
  3213.   ac_cv_type_uint8_t=no
  3214. fi
  3215. rm -f conftest*
  3216.  
  3217. fi
  3218. echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
  3219. if test $ac_cv_type_uint8_t = no; then
  3220.   cat >> confdefs.h <<\EOF
  3221. #define uint8_t unsigned char
  3222. EOF
  3223.  
  3224. fi
  3225.  
  3226. echo $ac_n "checking for int8_t""... $ac_c" 1>&6
  3227. echo "configure:3228: checking for int8_t" >&5
  3228. if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then
  3229.   echo $ac_n "(cached) $ac_c" 1>&6
  3230. else
  3231.   cat > conftest.$ac_ext <<EOF
  3232. #line 3233 "configure"
  3233. #include "confdefs.h"
  3234. #include <sys/types.h>
  3235. #if STDC_HEADERS
  3236. #include <stdlib.h>
  3237. #include <stddef.h>
  3238. #endif
  3239. EOF
  3240. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3241.   egrep "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3242.   rm -rf conftest*
  3243.   ac_cv_type_int8_t=yes
  3244. else
  3245.   rm -rf conftest*
  3246.   ac_cv_type_int8_t=no
  3247. fi
  3248. rm -f conftest*
  3249.  
  3250. fi
  3251. echo "$ac_t""$ac_cv_type_int8_t" 1>&6
  3252. if test $ac_cv_type_int8_t = no; then
  3253.   cat >> confdefs.h <<\EOF
  3254. #define int8_t char
  3255. EOF
  3256.  
  3257. fi
  3258.  
  3259. echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
  3260. echo "configure:3261: checking for uint16_t" >&5
  3261. if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
  3262.   echo $ac_n "(cached) $ac_c" 1>&6
  3263. else
  3264.   cat > conftest.$ac_ext <<EOF
  3265. #line 3266 "configure"
  3266. #include "confdefs.h"
  3267. #include <sys/types.h>
  3268. #if STDC_HEADERS
  3269. #include <stdlib.h>
  3270. #include <stddef.h>
  3271. #endif
  3272. EOF
  3273. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3274.   egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3275.   rm -rf conftest*
  3276.   ac_cv_type_uint16_t=yes
  3277. else
  3278.   rm -rf conftest*
  3279.   ac_cv_type_uint16_t=no
  3280. fi
  3281. rm -f conftest*
  3282.  
  3283. fi
  3284. echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
  3285. if test $ac_cv_type_uint16_t = no; then
  3286.   cat >> confdefs.h <<\EOF
  3287. #define uint16_t unsigned short
  3288. EOF
  3289.  
  3290. fi
  3291.  
  3292. echo $ac_n "checking for int16_t""... $ac_c" 1>&6
  3293. echo "configure:3294: checking for int16_t" >&5
  3294. if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
  3295.   echo $ac_n "(cached) $ac_c" 1>&6
  3296. else
  3297.   cat > conftest.$ac_ext <<EOF
  3298. #line 3299 "configure"
  3299. #include "confdefs.h"
  3300. #include <sys/types.h>
  3301. #if STDC_HEADERS
  3302. #include <stdlib.h>
  3303. #include <stddef.h>
  3304. #endif
  3305. EOF
  3306. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3307.   egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3308.   rm -rf conftest*
  3309.   ac_cv_type_int16_t=yes
  3310. else
  3311.   rm -rf conftest*
  3312.   ac_cv_type_int16_t=no
  3313. fi
  3314. rm -f conftest*
  3315.  
  3316. fi
  3317. echo "$ac_t""$ac_cv_type_int16_t" 1>&6
  3318. if test $ac_cv_type_int16_t = no; then
  3319.   cat >> confdefs.h <<\EOF
  3320. #define int16_t short
  3321. EOF
  3322.  
  3323. fi
  3324.  
  3325. if test "${ac_cv_sizeof_int}" = "4" ; then
  3326.     echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
  3327. echo "configure:3328: checking for uint32_t" >&5
  3328. if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
  3329.   echo $ac_n "(cached) $ac_c" 1>&6
  3330. else
  3331.   cat > conftest.$ac_ext <<EOF
  3332. #line 3333 "configure"
  3333. #include "confdefs.h"
  3334. #include <sys/types.h>
  3335. #if STDC_HEADERS
  3336. #include <stdlib.h>
  3337. #include <stddef.h>
  3338. #endif
  3339. EOF
  3340. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3341.   egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3342.   rm -rf conftest*
  3343.   ac_cv_type_uint32_t=yes
  3344. else
  3345.   rm -rf conftest*
  3346.   ac_cv_type_uint32_t=no
  3347. fi
  3348. rm -f conftest*
  3349.  
  3350. fi
  3351. echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
  3352. if test $ac_cv_type_uint32_t = no; then
  3353.   cat >> confdefs.h <<\EOF
  3354. #define uint32_t unsigned int
  3355. EOF
  3356.  
  3357. fi
  3358.  
  3359.     echo $ac_n "checking for int32_t""... $ac_c" 1>&6
  3360. echo "configure:3361: checking for int32_t" >&5
  3361. if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
  3362.   echo $ac_n "(cached) $ac_c" 1>&6
  3363. else
  3364.   cat > conftest.$ac_ext <<EOF
  3365. #line 3366 "configure"
  3366. #include "confdefs.h"
  3367. #include <sys/types.h>
  3368. #if STDC_HEADERS
  3369. #include <stdlib.h>
  3370. #include <stddef.h>
  3371. #endif
  3372. EOF
  3373. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3374.   egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3375.   rm -rf conftest*
  3376.   ac_cv_type_int32_t=yes
  3377. else
  3378.   rm -rf conftest*
  3379.   ac_cv_type_int32_t=no
  3380. fi
  3381. rm -f conftest*
  3382.  
  3383. fi
  3384. echo "$ac_t""$ac_cv_type_int32_t" 1>&6
  3385. if test $ac_cv_type_int32_t = no; then
  3386.   cat >> confdefs.h <<\EOF
  3387. #define int32_t int
  3388. EOF
  3389.  
  3390. fi
  3391.  
  3392. elif test "${ac_cv_sizeof_long}" = "4" ; then
  3393.     echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
  3394. echo "configure:3395: checking for uint32_t" >&5
  3395. if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
  3396.   echo $ac_n "(cached) $ac_c" 1>&6
  3397. else
  3398.   cat > conftest.$ac_ext <<EOF
  3399. #line 3400 "configure"
  3400. #include "confdefs.h"
  3401. #include <sys/types.h>
  3402. #if STDC_HEADERS
  3403. #include <stdlib.h>
  3404. #include <stddef.h>
  3405. #endif
  3406. EOF
  3407. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3408.   egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3409.   rm -rf conftest*
  3410.   ac_cv_type_uint32_t=yes
  3411. else
  3412.   rm -rf conftest*
  3413.   ac_cv_type_uint32_t=no
  3414. fi
  3415. rm -f conftest*
  3416.  
  3417. fi
  3418. echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
  3419. if test $ac_cv_type_uint32_t = no; then
  3420.   cat >> confdefs.h <<\EOF
  3421. #define uint32_t unsigned long
  3422. EOF
  3423.  
  3424. fi
  3425.  
  3426.     echo $ac_n "checking for int32_t""... $ac_c" 1>&6
  3427. echo "configure:3428: checking for int32_t" >&5
  3428. if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
  3429.   echo $ac_n "(cached) $ac_c" 1>&6
  3430. else
  3431.   cat > conftest.$ac_ext <<EOF
  3432. #line 3433 "configure"
  3433. #include "confdefs.h"
  3434. #include <sys/types.h>
  3435. #if STDC_HEADERS
  3436. #include <stdlib.h>
  3437. #include <stddef.h>
  3438. #endif
  3439. EOF
  3440. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3441.   egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3442.   rm -rf conftest*
  3443.   ac_cv_type_int32_t=yes
  3444. else
  3445.   rm -rf conftest*
  3446.   ac_cv_type_int32_t=no
  3447. fi
  3448. rm -f conftest*
  3449.  
  3450. fi
  3451. echo "$ac_t""$ac_cv_type_int32_t" 1>&6
  3452. if test $ac_cv_type_int32_t = no; then
  3453.   cat >> confdefs.h <<\EOF
  3454. #define int32_t long
  3455. EOF
  3456.  
  3457. fi
  3458.  
  3459. else
  3460.     # can't determine default value in case the type isn't present
  3461.     { echo "configure: error: CHECK_TYPE_int32_t - please report to lame-dev@lists.sourceforge.net" 1>&2; exit 1; }
  3462. fi
  3463. if test "${ac_cv_sizeof_long}" = "8" ; then
  3464.     echo $ac_n "checking for uint64_t""... $ac_c" 1>&6
  3465. echo "configure:3466: checking for uint64_t" >&5
  3466. if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then
  3467.   echo $ac_n "(cached) $ac_c" 1>&6
  3468. else
  3469.   cat > conftest.$ac_ext <<EOF
  3470. #line 3471 "configure"
  3471. #include "confdefs.h"
  3472. #include <sys/types.h>
  3473. #if STDC_HEADERS
  3474. #include <stdlib.h>
  3475. #include <stddef.h>
  3476. #endif
  3477. EOF
  3478. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3479.   egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3480.   rm -rf conftest*
  3481.   ac_cv_type_uint64_t=yes
  3482. else
  3483.   rm -rf conftest*
  3484.   ac_cv_type_uint64_t=no
  3485. fi
  3486. rm -f conftest*
  3487.  
  3488. fi
  3489. echo "$ac_t""$ac_cv_type_uint64_t" 1>&6
  3490. if test $ac_cv_type_uint64_t = no; then
  3491.   cat >> confdefs.h <<\EOF
  3492. #define uint64_t unsigned long
  3493. EOF
  3494.  
  3495. fi
  3496.  
  3497.     echo $ac_n "checking for int64_t""... $ac_c" 1>&6
  3498. echo "configure:3499: checking for int64_t" >&5
  3499. if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then
  3500.   echo $ac_n "(cached) $ac_c" 1>&6
  3501. else
  3502.   cat > conftest.$ac_ext <<EOF
  3503. #line 3504 "configure"
  3504. #include "confdefs.h"
  3505. #include <sys/types.h>
  3506. #if STDC_HEADERS
  3507. #include <stdlib.h>
  3508. #include <stddef.h>
  3509. #endif
  3510. EOF
  3511. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3512.   egrep "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3513.   rm -rf conftest*
  3514.   ac_cv_type_int64_t=yes
  3515. else
  3516.   rm -rf conftest*
  3517.   ac_cv_type_int64_t=no
  3518. fi
  3519. rm -f conftest*
  3520.  
  3521. fi
  3522. echo "$ac_t""$ac_cv_type_int64_t" 1>&6
  3523. if test $ac_cv_type_int64_t = no; then
  3524.   cat >> confdefs.h <<\EOF
  3525. #define int64_t long
  3526. EOF
  3527.  
  3528. fi
  3529.  
  3530. elif test "${ac_cv_sizeof_long_long}" = "8" ; then
  3531.     echo $ac_n "checking for uint64_t""... $ac_c" 1>&6
  3532. echo "configure:3533: checking for uint64_t" >&5
  3533. if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then
  3534.   echo $ac_n "(cached) $ac_c" 1>&6
  3535. else
  3536.   cat > conftest.$ac_ext <<EOF
  3537. #line 3538 "configure"
  3538. #include "confdefs.h"
  3539. #include <sys/types.h>
  3540. #if STDC_HEADERS
  3541. #include <stdlib.h>
  3542. #include <stddef.h>
  3543. #endif
  3544. EOF
  3545. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3546.   egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3547.   rm -rf conftest*
  3548.   ac_cv_type_uint64_t=yes
  3549. else
  3550.   rm -rf conftest*
  3551.   ac_cv_type_uint64_t=no
  3552. fi
  3553. rm -f conftest*
  3554.  
  3555. fi
  3556. echo "$ac_t""$ac_cv_type_uint64_t" 1>&6
  3557. if test $ac_cv_type_uint64_t = no; then
  3558.   cat >> confdefs.h <<\EOF
  3559. #define uint64_t unsigned long long
  3560. EOF
  3561.  
  3562. fi
  3563.  
  3564.     echo $ac_n "checking for int64_t""... $ac_c" 1>&6
  3565. echo "configure:3566: checking for int64_t" >&5
  3566. if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then
  3567.   echo $ac_n "(cached) $ac_c" 1>&6
  3568. else
  3569.   cat > conftest.$ac_ext <<EOF
  3570. #line 3571 "configure"
  3571. #include "confdefs.h"
  3572. #include <sys/types.h>
  3573. #if STDC_HEADERS
  3574. #include <stdlib.h>
  3575. #include <stddef.h>
  3576. #endif
  3577. EOF
  3578. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3579.   egrep "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3580.   rm -rf conftest*
  3581.   ac_cv_type_int64_t=yes
  3582. else
  3583.   rm -rf conftest*
  3584.   ac_cv_type_int64_t=no
  3585. fi
  3586. rm -f conftest*
  3587.  
  3588. fi
  3589. echo "$ac_t""$ac_cv_type_int64_t" 1>&6
  3590. if test $ac_cv_type_int64_t = no; then
  3591.   cat >> confdefs.h <<\EOF
  3592. #define int64_t long long
  3593. EOF
  3594.  
  3595. fi
  3596.  
  3597. else
  3598.     # can't determine default value in case the type isn't present
  3599.     { echo "configure: error: CHECK_TYPE_int64_t - please report to lame-dev@lists.sourceforge.net" 1>&2; exit 1; }
  3600. fi
  3601.  
  3602. echo $ac_n "checking for IEEE854 compliant 80 bit floats""... $ac_c" 1>&6
  3603. echo "configure:3604: checking for IEEE854 compliant 80 bit floats" >&5
  3604. if eval "test \"`echo '$''{'alex_cv_ieee854_float80'+set}'`\" = set"; then
  3605.   echo $ac_n "(cached) $ac_c" 1>&6
  3606. else
  3607.   if test "$cross_compiling" = yes; then
  3608.   echo "configure: warning: can't check for IEEE854 compliant 80 bit floats" 1>&2
  3609.  
  3610. else
  3611.   cat > conftest.$ac_ext <<EOF
  3612. #line 3613 "configure"
  3613. #include "confdefs.h"
  3614.  
  3615. int   float2long_IEEE_compliance ( void )
  3616. {
  3617.     float  f;
  3618.     f = 12582912.; if ( *(long*)(&f) != 1262485504l ) return 0;
  3619.     f = 12615679.; if ( *(long*)(&f) != 1262518271l ) return 0;
  3620.     f = 13582912.; if ( *(long*)(&f) != 1263485504l ) return 0;
  3621.     f = 12550145.; if ( *(long*)(&f) != 1262452737l ) return 0;
  3622.     f = 11582912.; if ( *(long*)(&f) != 1261485504l ) return 0;
  3623.     return 1;
  3624. }
  3625.  
  3626. int main(void)
  3627. {
  3628.     int retval;
  3629.  
  3630.     retval = float2long_IEEE_compliance();
  3631.  
  3632.     /* no error return -> success */
  3633.     return !retval;
  3634. }
  3635.  
  3636. EOF
  3637. if { (eval echo configure:3638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3638. then
  3639.   alex_cv_ieee854_float80=yes
  3640. else
  3641.   echo "configure: failed program was:" >&5
  3642.   cat conftest.$ac_ext >&5
  3643.   rm -fr conftest*
  3644.   alex_cv_ieee854_float80=no
  3645. fi
  3646. rm -fr conftest*
  3647. fi
  3648.  
  3649. fi
  3650.  
  3651. echo "$ac_t""$alex_cv_ieee854_float80" 1>&6
  3652. if test "${alex_cv_ieee854_float80}" = "yes" ; then
  3653.     if test "${ac_cv_c_long_double}" = "yes" ; then
  3654.         echo $ac_n "checking for ieee854_float80_t""... $ac_c" 1>&6
  3655. echo "configure:3656: checking for ieee854_float80_t" >&5
  3656. if eval "test \"`echo '$''{'ac_cv_type_ieee854_float80_t'+set}'`\" = set"; then
  3657.   echo $ac_n "(cached) $ac_c" 1>&6
  3658. else
  3659.   cat > conftest.$ac_ext <<EOF
  3660. #line 3661 "configure"
  3661. #include "confdefs.h"
  3662. #include <sys/types.h>
  3663. #if STDC_HEADERS
  3664. #include <stdlib.h>
  3665. #include <stddef.h>
  3666. #endif
  3667. EOF
  3668. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3669.   egrep "(^|[^a-zA-Z_0-9])ieee854_float80_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3670.   rm -rf conftest*
  3671.   ac_cv_type_ieee854_float80_t=yes
  3672. else
  3673.   rm -rf conftest*
  3674.   ac_cv_type_ieee854_float80_t=no
  3675. fi
  3676. rm -f conftest*
  3677.  
  3678. fi
  3679. echo "$ac_t""$ac_cv_type_ieee854_float80_t" 1>&6
  3680. if test $ac_cv_type_ieee854_float80_t = no; then
  3681.   cat >> confdefs.h <<\EOF
  3682. #define ieee854_float80_t long double
  3683. EOF
  3684.  
  3685. fi
  3686.  
  3687.         cat >> confdefs.h <<\EOF
  3688. #define HAVE_IEEE854_FLOAT80 1
  3689. EOF
  3690.  
  3691.     fi
  3692. fi
  3693. echo $ac_n "checking for ieee754_float64_t""... $ac_c" 1>&6
  3694. echo "configure:3695: checking for ieee754_float64_t" >&5
  3695. if eval "test \"`echo '$''{'ac_cv_type_ieee754_float64_t'+set}'`\" = set"; then
  3696.   echo $ac_n "(cached) $ac_c" 1>&6
  3697. else
  3698.   cat > conftest.$ac_ext <<EOF
  3699. #line 3700 "configure"
  3700. #include "confdefs.h"
  3701. #include <sys/types.h>
  3702. #if STDC_HEADERS
  3703. #include <stdlib.h>
  3704. #include <stddef.h>
  3705. #endif
  3706. EOF
  3707. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3708.   egrep "(^|[^a-zA-Z_0-9])ieee754_float64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3709.   rm -rf conftest*
  3710.   ac_cv_type_ieee754_float64_t=yes
  3711. else
  3712.   rm -rf conftest*
  3713.   ac_cv_type_ieee754_float64_t=no
  3714. fi
  3715. rm -f conftest*
  3716.  
  3717. fi
  3718. echo "$ac_t""$ac_cv_type_ieee754_float64_t" 1>&6
  3719. if test $ac_cv_type_ieee754_float64_t = no; then
  3720.   cat >> confdefs.h <<\EOF
  3721. #define ieee754_float64_t double
  3722. EOF
  3723.  
  3724. fi
  3725.  
  3726. echo $ac_n "checking for ieee754_float32_t""... $ac_c" 1>&6
  3727. echo "configure:3728: checking for ieee754_float32_t" >&5
  3728. if eval "test \"`echo '$''{'ac_cv_type_ieee754_float32_t'+set}'`\" = set"; then
  3729.   echo $ac_n "(cached) $ac_c" 1>&6
  3730. else
  3731.   cat > conftest.$ac_ext <<EOF
  3732. #line 3733 "configure"
  3733. #include "confdefs.h"
  3734. #include <sys/types.h>
  3735. #if STDC_HEADERS
  3736. #include <stdlib.h>
  3737. #include <stddef.h>
  3738. #endif
  3739. EOF
  3740. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3741.   egrep "(^|[^a-zA-Z_0-9])ieee754_float32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3742.   rm -rf conftest*
  3743.   ac_cv_type_ieee754_float32_t=yes
  3744. else
  3745.   rm -rf conftest*
  3746.   ac_cv_type_ieee754_float32_t=no
  3747. fi
  3748. rm -f conftest*
  3749.  
  3750. fi
  3751. echo "$ac_t""$ac_cv_type_ieee754_float32_t" 1>&6
  3752. if test $ac_cv_type_ieee754_float32_t = no; then
  3753.   cat >> confdefs.h <<\EOF
  3754. #define ieee754_float32_t float
  3755. EOF
  3756.  
  3757. fi
  3758.  
  3759.  
  3760. cat >> confdefs.h <<\EOF
  3761. #define LAME_LIBRARY_BUILD 1
  3762. EOF
  3763.  
  3764.  
  3765.  
  3766. if test ${cross_compiling} = "yes"; then
  3767.     echo "configure: warning: 
  3768.   **************************************************************************
  3769.   *                                                                        *
  3770.   * You are cross compiling:                                               *
  3771.   *   - I did not have a change to determine                               *
  3772.   *     + the size of:                                                     *
  3773.   *       - short                                                          *
  3774.   *       - unsigned short                                                 *
  3775.   *       - int                                                            *
  3776.   *       - unsigned int                                                   *
  3777.   *       - long                                                           *
  3778.   *       - unsigned long                                                  *
  3779.   *       - float                                                          *
  3780.   *       - double                                                         *
  3781.   *       - long double                                                    *
  3782.   *     + the endianess of the target system                               *
  3783.   *   - You have to provide appropriate defines for them in config.h, e.g. *
  3784.   *     + define SIZEOF_SHORT to 2 if the size of a short is 2             *
  3785.   *     + define WORDS_BIGENDIAN if your system is a big endian system     *
  3786.   *                                                                        *
  3787.   **************************************************************************" 1>&2
  3788. fi
  3789.  
  3790. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  3791. echo "configure:3792: checking for size_t" >&5
  3792. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  3793.   echo $ac_n "(cached) $ac_c" 1>&6
  3794. else
  3795.   cat > conftest.$ac_ext <<EOF
  3796. #line 3797 "configure"
  3797. #include "confdefs.h"
  3798. #include <sys/types.h>
  3799. #if STDC_HEADERS
  3800. #include <stdlib.h>
  3801. #include <stddef.h>
  3802. #endif
  3803. EOF
  3804. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3805.   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3806.   rm -rf conftest*
  3807.   ac_cv_type_size_t=yes
  3808. else
  3809.   rm -rf conftest*
  3810.   ac_cv_type_size_t=no
  3811. fi
  3812. rm -f conftest*
  3813.  
  3814. fi
  3815. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  3816. if test $ac_cv_type_size_t = no; then
  3817.   cat >> confdefs.h <<\EOF
  3818. #define size_t unsigned
  3819. EOF
  3820.  
  3821. fi
  3822.  
  3823. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  3824. echo "configure:3825: checking whether time.h and sys/time.h may both be included" >&5
  3825. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  3826.   echo $ac_n "(cached) $ac_c" 1>&6
  3827. else
  3828.   cat > conftest.$ac_ext <<EOF
  3829. #line 3830 "configure"
  3830. #include "confdefs.h"
  3831. #include <sys/types.h>
  3832. #include <sys/time.h>
  3833. #include <time.h>
  3834. int main() {
  3835. struct tm *tp;
  3836. ; return 0; }
  3837. EOF
  3838. if { (eval echo configure:3839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3839.   rm -rf conftest*
  3840.   ac_cv_header_time=yes
  3841. else
  3842.   echo "configure: failed program was:" >&5
  3843.   cat conftest.$ac_ext >&5
  3844.   rm -rf conftest*
  3845.   ac_cv_header_time=no
  3846. fi
  3847. rm -f conftest*
  3848. fi
  3849.  
  3850. echo "$ac_t""$ac_cv_header_time" 1>&6
  3851. if test $ac_cv_header_time = yes; then
  3852.   cat >> confdefs.h <<\EOF
  3853. #define TIME_WITH_SYS_TIME 1
  3854. EOF
  3855.  
  3856. fi
  3857.  
  3858.  
  3859. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  3860. # for constant arguments.  Useless!
  3861. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  3862. echo "configure:3863: checking for working alloca.h" >&5
  3863. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  3864.   echo $ac_n "(cached) $ac_c" 1>&6
  3865. else
  3866.   cat > conftest.$ac_ext <<EOF
  3867. #line 3868 "configure"
  3868. #include "confdefs.h"
  3869. #include <alloca.h>
  3870. int main() {
  3871. char *p = alloca(2 * sizeof(int));
  3872. ; return 0; }
  3873. EOF
  3874. if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3875.   rm -rf conftest*
  3876.   ac_cv_header_alloca_h=yes
  3877. else
  3878.   echo "configure: failed program was:" >&5
  3879.   cat conftest.$ac_ext >&5
  3880.   rm -rf conftest*
  3881.   ac_cv_header_alloca_h=no
  3882. fi
  3883. rm -f conftest*
  3884. fi
  3885.  
  3886. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  3887. if test $ac_cv_header_alloca_h = yes; then
  3888.   cat >> confdefs.h <<\EOF
  3889. #define HAVE_ALLOCA_H 1
  3890. EOF
  3891.  
  3892. fi
  3893.  
  3894. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  3895. echo "configure:3896: checking for alloca" >&5
  3896. if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  3897.   echo $ac_n "(cached) $ac_c" 1>&6
  3898. else
  3899.   cat > conftest.$ac_ext <<EOF
  3900. #line 3901 "configure"
  3901. #include "confdefs.h"
  3902.  
  3903. #ifdef __GNUC__
  3904. # define alloca __builtin_alloca
  3905. #else
  3906. # ifdef _MSC_VER
  3907. #  include <malloc.h>
  3908. #  define alloca _alloca
  3909. # else
  3910. #  if HAVE_ALLOCA_H
  3911. #   include <alloca.h>
  3912. #  else
  3913. #   ifdef _AIX
  3914.  #pragma alloca
  3915. #   else
  3916. #    ifndef alloca /* predefined by HP cc +Olibcalls */
  3917. char *alloca ();
  3918. #    endif
  3919. #   endif
  3920. #  endif
  3921. # endif
  3922. #endif
  3923.  
  3924. int main() {
  3925. char *p = (char *) alloca(1);
  3926. ; return 0; }
  3927. EOF
  3928. if { (eval echo configure:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3929.   rm -rf conftest*
  3930.   ac_cv_func_alloca_works=yes
  3931. else
  3932.   echo "configure: failed program was:" >&5
  3933.   cat conftest.$ac_ext >&5
  3934.   rm -rf conftest*
  3935.   ac_cv_func_alloca_works=no
  3936. fi
  3937. rm -f conftest*
  3938. fi
  3939.  
  3940. echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
  3941. if test $ac_cv_func_alloca_works = yes; then
  3942.   cat >> confdefs.h <<\EOF
  3943. #define HAVE_ALLOCA 1
  3944. EOF
  3945.  
  3946. fi
  3947.  
  3948. if test $ac_cv_func_alloca_works = no; then
  3949.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  3950.   # that cause trouble.  Some versions do not even contain alloca or
  3951.   # contain a buggy version.  If you still want to use their alloca,
  3952.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  3953.   ALLOCA=alloca.${ac_objext}
  3954.   cat >> confdefs.h <<\EOF
  3955. #define C_ALLOCA 1
  3956. EOF
  3957.  
  3958.  
  3959. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  3960. echo "configure:3961: checking whether alloca needs Cray hooks" >&5
  3961. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  3962.   echo $ac_n "(cached) $ac_c" 1>&6
  3963. else
  3964.   cat > conftest.$ac_ext <<EOF
  3965. #line 3966 "configure"
  3966. #include "confdefs.h"
  3967. #if defined(CRAY) && ! defined(CRAY2)
  3968. webecray
  3969. #else
  3970. wenotbecray
  3971. #endif
  3972.  
  3973. EOF
  3974. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3975.   egrep "webecray" >/dev/null 2>&1; then
  3976.   rm -rf conftest*
  3977.   ac_cv_os_cray=yes
  3978. else
  3979.   rm -rf conftest*
  3980.   ac_cv_os_cray=no
  3981. fi
  3982. rm -f conftest*
  3983.  
  3984. fi
  3985.  
  3986. echo "$ac_t""$ac_cv_os_cray" 1>&6
  3987. if test $ac_cv_os_cray = yes; then
  3988. for ac_func in _getb67 GETB67 getb67; do
  3989.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3990. echo "configure:3991: checking for $ac_func" >&5
  3991. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3992.   echo $ac_n "(cached) $ac_c" 1>&6
  3993. else
  3994.   cat > conftest.$ac_ext <<EOF
  3995. #line 3996 "configure"
  3996. #include "confdefs.h"
  3997. /* System header to define __stub macros and hopefully few prototypes,
  3998.     which can conflict with char $ac_func(); below.  */
  3999. #include <assert.h>
  4000. /* Override any gcc2 internal prototype to avoid an error.  */
  4001. /* We use char because int might match the return type of a gcc2
  4002.     builtin and then its argument prototype would still apply.  */
  4003. char $ac_func();
  4004.  
  4005. int main() {
  4006.  
  4007. /* The GNU C library defines this for functions which it implements
  4008.     to always fail with ENOSYS.  Some functions are actually named
  4009.     something starting with __ and the normal name is an alias.  */
  4010. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4011. choke me
  4012. #else
  4013. $ac_func();
  4014. #endif
  4015.  
  4016. ; return 0; }
  4017. EOF
  4018. if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4019.   rm -rf conftest*
  4020.   eval "ac_cv_func_$ac_func=yes"
  4021. else
  4022.   echo "configure: failed program was:" >&5
  4023.   cat conftest.$ac_ext >&5
  4024.   rm -rf conftest*
  4025.   eval "ac_cv_func_$ac_func=no"
  4026. fi
  4027. rm -f conftest*
  4028. fi
  4029.  
  4030. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4031.   echo "$ac_t""yes" 1>&6
  4032.   cat >> confdefs.h <<EOF
  4033. #define CRAY_STACKSEG_END $ac_func
  4034. EOF
  4035.  
  4036.   break
  4037. else
  4038.   echo "$ac_t""no" 1>&6
  4039. fi
  4040.  
  4041. done
  4042. fi
  4043.  
  4044. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  4045. echo "configure:4046: checking stack direction for C alloca" >&5
  4046. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  4047.   echo $ac_n "(cached) $ac_c" 1>&6
  4048. else
  4049.   if test "$cross_compiling" = yes; then
  4050.   ac_cv_c_stack_direction=0
  4051. else
  4052.   cat > conftest.$ac_ext <<EOF
  4053. #line 4054 "configure"
  4054. #include "confdefs.h"
  4055. find_stack_direction ()
  4056. {
  4057.   static char *addr = 0;
  4058.   auto char dummy;
  4059.   if (addr == 0)
  4060.     {
  4061.       addr = &dummy;
  4062.       return find_stack_direction ();
  4063.     }
  4064.   else
  4065.     return (&dummy > addr) ? 1 : -1;
  4066. }
  4067. main ()
  4068. {
  4069.   exit (find_stack_direction() < 0);
  4070. }
  4071. EOF
  4072. if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4073. then
  4074.   ac_cv_c_stack_direction=1
  4075. else
  4076.   echo "configure: failed program was:" >&5
  4077.   cat conftest.$ac_ext >&5
  4078.   rm -fr conftest*
  4079.   ac_cv_c_stack_direction=-1
  4080. fi
  4081. rm -fr conftest*
  4082. fi
  4083.  
  4084. fi
  4085.  
  4086. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  4087. cat >> confdefs.h <<EOF
  4088. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4089. EOF
  4090.  
  4091. fi
  4092.  
  4093. for ac_func in gettimeofday socket strtol
  4094. do
  4095. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4096. echo "configure:4097: checking for $ac_func" >&5
  4097. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4098.   echo $ac_n "(cached) $ac_c" 1>&6
  4099. else
  4100.   cat > conftest.$ac_ext <<EOF
  4101. #line 4102 "configure"
  4102. #include "confdefs.h"
  4103. /* System header to define __stub macros and hopefully few prototypes,
  4104.     which can conflict with char $ac_func(); below.  */
  4105. #include <assert.h>
  4106. /* Override any gcc2 internal prototype to avoid an error.  */
  4107. /* We use char because int might match the return type of a gcc2
  4108.     builtin and then its argument prototype would still apply.  */
  4109. char $ac_func();
  4110.  
  4111. int main() {
  4112.  
  4113. /* The GNU C library defines this for functions which it implements
  4114.     to always fail with ENOSYS.  Some functions are actually named
  4115.     something starting with __ and the normal name is an alias.  */
  4116. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4117. choke me
  4118. #else
  4119. $ac_func();
  4120. #endif
  4121.  
  4122. ; return 0; }
  4123. EOF
  4124. if { (eval echo configure:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4125.   rm -rf conftest*
  4126.   eval "ac_cv_func_$ac_func=yes"
  4127. else
  4128.   echo "configure: failed program was:" >&5
  4129.   cat conftest.$ac_ext >&5
  4130.   rm -rf conftest*
  4131.   eval "ac_cv_func_$ac_func=no"
  4132. fi
  4133. rm -f conftest*
  4134. fi
  4135.  
  4136. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4137.   echo "$ac_t""yes" 1>&6
  4138.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4139.   cat >> confdefs.h <<EOF
  4140. #define $ac_tr_func 1
  4141. EOF
  4142.  
  4143. else
  4144.   echo "$ac_t""no" 1>&6
  4145. fi
  4146. done
  4147.  
  4148.  
  4149.  
  4150. CFLAGS=${CFLAGS}
  4151. CONFIG_DEFS=${CONFIG_DEFS}
  4152. NASM=
  4153. INCLUDES="-I\$(top_srcdir)/include -I\$(srcdir)"
  4154. FRONTEND_LDFLAGS=
  4155. FRONTEND_CFLAGS=
  4156. LIB_SOURCES=
  4157. MAKEDEP="-M"
  4158. RM_F="rm -f"
  4159.  
  4160. # Check whether --enable-nasm or --disable-nasm was given.
  4161. if test "${enable_nasm+set}" = set; then
  4162.   enableval="$enable_nasm"
  4163.   ASM_FOR_ARCH="i386"
  4164. else
  4165.   ASM_FOR_ARCH=""
  4166. fi
  4167.  
  4168.  
  4169.  
  4170. for ac_hdr in termcap.h
  4171. do
  4172. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4173. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4174. echo "configure:4175: checking for $ac_hdr" >&5
  4175. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4176.   echo $ac_n "(cached) $ac_c" 1>&6
  4177. else
  4178.   cat > conftest.$ac_ext <<EOF
  4179. #line 4180 "configure"
  4180. #include "confdefs.h"
  4181. #include <$ac_hdr>
  4182. EOF
  4183. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4184. { (eval echo configure:4185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4185. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4186. if test -z "$ac_err"; then
  4187.   rm -rf conftest*
  4188.   eval "ac_cv_header_$ac_safe=yes"
  4189. else
  4190.   echo "$ac_err" >&5
  4191.   echo "configure: failed program was:" >&5
  4192.   cat conftest.$ac_ext >&5
  4193.   rm -rf conftest*
  4194.   eval "ac_cv_header_$ac_safe=no"
  4195. fi
  4196. rm -f conftest*
  4197. fi
  4198. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4199.   echo "$ac_t""yes" 1>&6
  4200.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4201.   cat >> confdefs.h <<EOF
  4202. #define $ac_tr_hdr 1
  4203. EOF
  4204.  
  4205. else
  4206.   echo "$ac_t""no" 1>&6
  4207. fi
  4208. done
  4209.  
  4210. for ac_hdr in ncurses/termcap.h
  4211. do
  4212. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4213. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4214. echo "configure:4215: checking for $ac_hdr" >&5
  4215. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4216.   echo $ac_n "(cached) $ac_c" 1>&6
  4217. else
  4218.   cat > conftest.$ac_ext <<EOF
  4219. #line 4220 "configure"
  4220. #include "confdefs.h"
  4221. #include <$ac_hdr>
  4222. EOF
  4223. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4224. { (eval echo configure:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4225. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4226. if test -z "$ac_err"; then
  4227.   rm -rf conftest*
  4228.   eval "ac_cv_header_$ac_safe=yes"
  4229. else
  4230.   echo "$ac_err" >&5
  4231.   echo "configure: failed program was:" >&5
  4232.   cat conftest.$ac_ext >&5
  4233.   rm -rf conftest*
  4234.   eval "ac_cv_header_$ac_safe=no"
  4235. fi
  4236. rm -f conftest*
  4237. fi
  4238. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4239.   echo "$ac_t""yes" 1>&6
  4240.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4241.   cat >> confdefs.h <<EOF
  4242. #define $ac_tr_hdr 1
  4243. EOF
  4244.  
  4245. else
  4246.   echo "$ac_t""no" 1>&6
  4247. fi
  4248. done
  4249.  
  4250. echo $ac_n "checking for initscr in -ltermcap""... $ac_c" 1>&6
  4251. echo "configure:4252: checking for initscr in -ltermcap" >&5
  4252. ac_lib_var=`echo termcap'_'initscr | sed 'y%./+-%__p_%'`
  4253. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4254.   echo $ac_n "(cached) $ac_c" 1>&6
  4255. else
  4256.   ac_save_LIBS="$LIBS"
  4257. LIBS="-ltermcap  $LIBS"
  4258. cat > conftest.$ac_ext <<EOF
  4259. #line 4260 "configure"
  4260. #include "confdefs.h"
  4261. /* Override any gcc2 internal prototype to avoid an error.  */
  4262. /* We use char because int might match the return type of a gcc2
  4263.     builtin and then its argument prototype would still apply.  */
  4264. char initscr();
  4265.  
  4266. int main() {
  4267. initscr()
  4268. ; return 0; }
  4269. EOF
  4270. if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4271.   rm -rf conftest*
  4272.   eval "ac_cv_lib_$ac_lib_var=yes"
  4273. else
  4274.   echo "configure: failed program was:" >&5
  4275.   cat conftest.$ac_ext >&5
  4276.   rm -rf conftest*
  4277.   eval "ac_cv_lib_$ac_lib_var=no"
  4278. fi
  4279. rm -f conftest*
  4280. LIBS="$ac_save_LIBS"
  4281.  
  4282. fi
  4283. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4284.   echo "$ac_t""yes" 1>&6
  4285.   HAVE_TERMCAP="termcap"
  4286. else
  4287.   echo "$ac_t""no" 1>&6
  4288. fi
  4289.  
  4290. echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
  4291. echo "configure:4292: checking for initscr in -lcurses" >&5
  4292. ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
  4293. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4294.   echo $ac_n "(cached) $ac_c" 1>&6
  4295. else
  4296.   ac_save_LIBS="$LIBS"
  4297. LIBS="-lcurses  $LIBS"
  4298. cat > conftest.$ac_ext <<EOF
  4299. #line 4300 "configure"
  4300. #include "confdefs.h"
  4301. /* Override any gcc2 internal prototype to avoid an error.  */
  4302. /* We use char because int might match the return type of a gcc2
  4303.     builtin and then its argument prototype would still apply.  */
  4304. char initscr();
  4305.  
  4306. int main() {
  4307. initscr()
  4308. ; return 0; }
  4309. EOF
  4310. if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4311.   rm -rf conftest*
  4312.   eval "ac_cv_lib_$ac_lib_var=yes"
  4313. else
  4314.   echo "configure: failed program was:" >&5
  4315.   cat conftest.$ac_ext >&5
  4316.   rm -rf conftest*
  4317.   eval "ac_cv_lib_$ac_lib_var=no"
  4318. fi
  4319. rm -f conftest*
  4320. LIBS="$ac_save_LIBS"
  4321.  
  4322. fi
  4323. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4324.   echo "$ac_t""yes" 1>&6
  4325.   HAVE_TERMCAP="curses"
  4326. else
  4327.   echo "$ac_t""no" 1>&6
  4328. fi
  4329.  
  4330. echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
  4331. echo "configure:4332: checking for initscr in -lncurses" >&5
  4332. ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
  4333. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4334.   echo $ac_n "(cached) $ac_c" 1>&6
  4335. else
  4336.   ac_save_LIBS="$LIBS"
  4337. LIBS="-lncurses  $LIBS"
  4338. cat > conftest.$ac_ext <<EOF
  4339. #line 4340 "configure"
  4340. #include "confdefs.h"
  4341. /* Override any gcc2 internal prototype to avoid an error.  */
  4342. /* We use char because int might match the return type of a gcc2
  4343.     builtin and then its argument prototype would still apply.  */
  4344. char initscr();
  4345.  
  4346. int main() {
  4347. initscr()
  4348. ; return 0; }
  4349. EOF
  4350. if { (eval echo configure:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4351.   rm -rf conftest*
  4352.   eval "ac_cv_lib_$ac_lib_var=yes"
  4353. else
  4354.   echo "configure: failed program was:" >&5
  4355.   cat conftest.$ac_ext >&5
  4356.   rm -rf conftest*
  4357.   eval "ac_cv_lib_$ac_lib_var=no"
  4358. fi
  4359. rm -f conftest*
  4360. LIBS="$ac_save_LIBS"
  4361.  
  4362. fi
  4363. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4364.   echo "$ac_t""yes" 1>&6
  4365.   HAVE_TERMCAP="ncurses"
  4366. else
  4367.   echo "$ac_t""no" 1>&6
  4368. fi
  4369.  
  4370.  
  4371. echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
  4372. echo "configure:4373: checking for cos in -lm" >&5
  4373. ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
  4374. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4375.   echo $ac_n "(cached) $ac_c" 1>&6
  4376. else
  4377.   ac_save_LIBS="$LIBS"
  4378. LIBS="-lm  $LIBS"
  4379. cat > conftest.$ac_ext <<EOF
  4380. #line 4381 "configure"
  4381. #include "confdefs.h"
  4382. /* Override any gcc2 internal prototype to avoid an error.  */
  4383. /* We use char because int might match the return type of a gcc2
  4384.     builtin and then its argument prototype would still apply.  */
  4385. char cos();
  4386.  
  4387. int main() {
  4388. cos()
  4389. ; return 0; }
  4390. EOF
  4391. if { (eval echo configure:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4392.   rm -rf conftest*
  4393.   eval "ac_cv_lib_$ac_lib_var=yes"
  4394. else
  4395.   echo "configure: failed program was:" >&5
  4396.   cat conftest.$ac_ext >&5
  4397.   rm -rf conftest*
  4398.   eval "ac_cv_lib_$ac_lib_var=no"
  4399. fi
  4400. rm -f conftest*
  4401. LIBS="$ac_save_LIBS"
  4402.  
  4403. fi
  4404. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4405.   echo "$ac_t""yes" 1>&6
  4406.   USE_LIBM="-lm"
  4407. else
  4408.   echo "$ac_t""no" 1>&6
  4409. fi
  4410.  
  4411. echo $ac_n "checking for cos in -lffm""... $ac_c" 1>&6
  4412. echo "configure:4413: checking for cos in -lffm" >&5
  4413. ac_lib_var=`echo ffm'_'cos | sed 'y%./+-%__p_%'`
  4414. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4415.   echo $ac_n "(cached) $ac_c" 1>&6
  4416. else
  4417.   ac_save_LIBS="$LIBS"
  4418. LIBS="-lffm  $LIBS"
  4419. cat > conftest.$ac_ext <<EOF
  4420. #line 4421 "configure"
  4421. #include "confdefs.h"
  4422. /* Override any gcc2 internal prototype to avoid an error.  */
  4423. /* We use char because int might match the return type of a gcc2
  4424.     builtin and then its argument prototype would still apply.  */
  4425. char cos();
  4426.  
  4427. int main() {
  4428. cos()
  4429. ; return 0; }
  4430. EOF
  4431. if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4432.   rm -rf conftest*
  4433.   eval "ac_cv_lib_$ac_lib_var=yes"
  4434. else
  4435.   echo "configure: failed program was:" >&5
  4436.   cat conftest.$ac_ext >&5
  4437.   rm -rf conftest*
  4438.   eval "ac_cv_lib_$ac_lib_var=no"
  4439. fi
  4440. rm -f conftest*
  4441. LIBS="$ac_save_LIBS"
  4442.  
  4443. fi
  4444. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4445.   echo "$ac_t""yes" 1>&6
  4446.   USE_LIBM="-lffm"
  4447. else
  4448.   echo "$ac_t""no" 1>&6
  4449. fi
  4450.  
  4451. echo $ac_n "checking for cos in -lcpml""... $ac_c" 1>&6
  4452. echo "configure:4453: checking for cos in -lcpml" >&5
  4453. ac_lib_var=`echo cpml'_'cos | sed 'y%./+-%__p_%'`
  4454. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4455.   echo $ac_n "(cached) $ac_c" 1>&6
  4456. else
  4457.   ac_save_LIBS="$LIBS"
  4458. LIBS="-lcpml  $LIBS"
  4459. cat > conftest.$ac_ext <<EOF
  4460. #line 4461 "configure"
  4461. #include "confdefs.h"
  4462. /* Override any gcc2 internal prototype to avoid an error.  */
  4463. /* We use char because int might match the return type of a gcc2
  4464.     builtin and then its argument prototype would still apply.  */
  4465. char cos();
  4466.  
  4467. int main() {
  4468. cos()
  4469. ; return 0; }
  4470. EOF
  4471. if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4472.   rm -rf conftest*
  4473.   eval "ac_cv_lib_$ac_lib_var=yes"
  4474. else
  4475.   echo "configure: failed program was:" >&5
  4476.   cat conftest.$ac_ext >&5
  4477.   rm -rf conftest*
  4478.   eval "ac_cv_lib_$ac_lib_var=no"
  4479. fi
  4480. rm -f conftest*
  4481. LIBS="$ac_save_LIBS"
  4482.  
  4483. fi
  4484. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4485.   echo "$ac_t""yes" 1>&6
  4486.   USE_LIBM="-lcpml"
  4487. else
  4488.   echo "$ac_t""no" 1>&6
  4489. fi
  4490.  
  4491. CONFIG_MATH_LIB="${USE_LIBM}"
  4492.  
  4493. echo $ac_n "checking for sf_open_read in -lsndfile""... $ac_c" 1>&6
  4494. echo "configure:4495: checking for sf_open_read in -lsndfile" >&5
  4495. ac_lib_var=`echo sndfile'_'sf_open_read | sed 'y%./+-%__p_%'`
  4496. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4497.   echo $ac_n "(cached) $ac_c" 1>&6
  4498. else
  4499.   ac_save_LIBS="$LIBS"
  4500. LIBS="-lsndfile  $LIBS"
  4501. cat > conftest.$ac_ext <<EOF
  4502. #line 4503 "configure"
  4503. #include "confdefs.h"
  4504. /* Override any gcc2 internal prototype to avoid an error.  */
  4505. /* We use char because int might match the return type of a gcc2
  4506.     builtin and then its argument prototype would still apply.  */
  4507. char sf_open_read();
  4508.  
  4509. int main() {
  4510. sf_open_read()
  4511. ; return 0; }
  4512. EOF
  4513. if { (eval echo configure:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4514.   rm -rf conftest*
  4515.   eval "ac_cv_lib_$ac_lib_var=yes"
  4516. else
  4517.   echo "configure: failed program was:" >&5
  4518.   cat conftest.$ac_ext >&5
  4519.   rm -rf conftest*
  4520.   eval "ac_cv_lib_$ac_lib_var=no"
  4521. fi
  4522. rm -f conftest*
  4523. LIBS="$ac_save_LIBS"
  4524.  
  4525. fi
  4526. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4527.   echo "$ac_t""yes" 1>&6
  4528.   HAVE_SNDFILE="yes"
  4529. else
  4530.   echo "$ac_t""no" 1>&6
  4531. fi
  4532.  
  4533.  
  4534.  
  4535.  
  4536. # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
  4537. if test "${with_gtk_prefix+set}" = set; then
  4538.   withval="$with_gtk_prefix"
  4539.   gtk_config_prefix="$withval"
  4540. else
  4541.   gtk_config_prefix=""
  4542. fi
  4543.  
  4544. # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
  4545. if test "${with_gtk_exec_prefix+set}" = set; then
  4546.   withval="$with_gtk_exec_prefix"
  4547.   gtk_config_exec_prefix="$withval"
  4548. else
  4549.   gtk_config_exec_prefix=""
  4550. fi
  4551.  
  4552. # Check whether --enable-gtktest or --disable-gtktest was given.
  4553. if test "${enable_gtktest+set}" = set; then
  4554.   enableval="$enable_gtktest"
  4555.   :
  4556. else
  4557.   enable_gtktest=yes
  4558. fi
  4559.  
  4560.  
  4561.   for module in . 
  4562.   do
  4563.       case "$module" in
  4564.          gthread) 
  4565.              gtk_config_args="$gtk_config_args gthread"
  4566.          ;;
  4567.       esac
  4568.   done
  4569.  
  4570.   if test x$gtk_config_exec_prefix != x ; then
  4571.      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
  4572.      if test x${GTK_CONFIG+set} != xset ; then
  4573.         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
  4574.      fi
  4575.   fi
  4576.   if test x$gtk_config_prefix != x ; then
  4577.      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
  4578.      if test x${GTK_CONFIG+set} != xset ; then
  4579.         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
  4580.      fi
  4581.   fi
  4582.  
  4583.   # Extract the first word of "gtk-config", so it can be a program name with args.
  4584. set dummy gtk-config; ac_word=$2
  4585. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4586. echo "configure:4587: checking for $ac_word" >&5
  4587. if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
  4588.   echo $ac_n "(cached) $ac_c" 1>&6
  4589. else
  4590.   case "$GTK_CONFIG" in
  4591.   /*)
  4592.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  4593.   ;;
  4594.   ?:/*)             
  4595.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  4596.   ;;
  4597.   *)
  4598.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  4599.   ac_dummy="$PATH"
  4600.   for ac_dir in $ac_dummy; do 
  4601.     test -z "$ac_dir" && ac_dir=.
  4602.     if test -f $ac_dir/$ac_word; then
  4603.       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
  4604.       break
  4605.     fi
  4606.   done
  4607.   IFS="$ac_save_ifs"
  4608.   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  4609.   ;;
  4610. esac
  4611. fi
  4612. GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
  4613. if test -n "$GTK_CONFIG"; then
  4614.   echo "$ac_t""$GTK_CONFIG" 1>&6
  4615. else
  4616.   echo "$ac_t""no" 1>&6
  4617. fi
  4618.  
  4619.   min_gtk_version=1.2.0
  4620.   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
  4621. echo "configure:4622: checking for GTK - version >= $min_gtk_version" >&5
  4622.   no_gtk=""
  4623.   if test "$GTK_CONFIG" = "no" ; then
  4624.     no_gtk=yes
  4625.   else
  4626.     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  4627.     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  4628.     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
  4629.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4630.     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
  4631.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4632.     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
  4633.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4634.     if test "x$enable_gtktest" = "xyes" ; then
  4635.       ac_save_CFLAGS="$CFLAGS"
  4636.       ac_save_LIBS="$LIBS"
  4637.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  4638.       LIBS="$GTK_LIBS $LIBS"
  4639.       rm -f conf.gtktest
  4640.       if test "$cross_compiling" = yes; then
  4641.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  4642. else
  4643.   cat > conftest.$ac_ext <<EOF
  4644. #line 4645 "configure"
  4645. #include "confdefs.h"
  4646.  
  4647. #include <gtk/gtk.h>
  4648. #include <stdio.h>
  4649. #include <stdlib.h>
  4650.  
  4651. int 
  4652. main ()
  4653. {
  4654.   int major, minor, micro;
  4655.   char *tmp_version;
  4656.  
  4657.   system ("touch conf.gtktest");
  4658.  
  4659.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  4660.   tmp_version = g_strdup("$min_gtk_version");
  4661.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  4662.      printf("%s, bad version string\n", "$min_gtk_version");
  4663.      exit(1);
  4664.    }
  4665.  
  4666.   if ((gtk_major_version != $gtk_config_major_version) ||
  4667.       (gtk_minor_version != $gtk_config_minor_version) ||
  4668.       (gtk_micro_version != $gtk_config_micro_version))
  4669.     {
  4670.       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
  4671.              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  4672.              gtk_major_version, gtk_minor_version, gtk_micro_version);
  4673.       printf ("*** was found! If gtk-config was correct, then it is best\n");
  4674.       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  4675.       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  4676.       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  4677.       printf("*** required on your system.\n");
  4678.       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
  4679.       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
  4680.       printf("*** before re-running configure\n");
  4681.     } 
  4682. #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  4683.   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  4684.        (gtk_minor_version != GTK_MINOR_VERSION) ||
  4685.            (gtk_micro_version != GTK_MICRO_VERSION))
  4686.     {
  4687.       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  4688.          GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  4689.       printf("*** library (version %d.%d.%d)\n",
  4690.          gtk_major_version, gtk_minor_version, gtk_micro_version);
  4691.     }
  4692. #endif /* defined (GTK_MAJOR_VERSION) ... */
  4693.   else
  4694.     {
  4695.       if ((gtk_major_version > major) ||
  4696.         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  4697.         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  4698.       {
  4699.         return 0;
  4700.        }
  4701.      else
  4702.       {
  4703.         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  4704.                gtk_major_version, gtk_minor_version, gtk_micro_version);
  4705.         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  4706.            major, minor, micro);
  4707.         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  4708.         printf("***\n");
  4709.         printf("*** If you have already installed a sufficiently new version, this error\n");
  4710.         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
  4711.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4712.         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
  4713.         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
  4714.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4715.         printf("*** so that the correct libraries are found at run-time))\n");
  4716.       }
  4717.     }
  4718.   return 1;
  4719. }
  4720.  
  4721. EOF
  4722. if { (eval echo configure:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4723. then
  4724.   :
  4725. else
  4726.   echo "configure: failed program was:" >&5
  4727.   cat conftest.$ac_ext >&5
  4728.   rm -fr conftest*
  4729.   no_gtk=yes
  4730. fi
  4731. rm -fr conftest*
  4732. fi
  4733.  
  4734.        CFLAGS="$ac_save_CFLAGS"
  4735.        LIBS="$ac_save_LIBS"
  4736.      fi
  4737.   fi
  4738.   if test "x$no_gtk" = x ; then
  4739.      echo "$ac_t""yes" 1>&6
  4740.      HAVE_GTK="yes"     
  4741.   else
  4742.      echo "$ac_t""no" 1>&6
  4743.      if test "$GTK_CONFIG" = "no" ; then
  4744.        echo "*** The gtk-config script installed by GTK could not be found"
  4745.        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
  4746.        echo "*** your path, or set the GTK_CONFIG environment variable to the"
  4747.        echo "*** full path to gtk-config."
  4748.      else
  4749.        if test -f conf.gtktest ; then
  4750.         :
  4751.        else
  4752.           echo "*** Could not run GTK test program, checking why..."
  4753.           CFLAGS="$CFLAGS $GTK_CFLAGS"
  4754.           LIBS="$LIBS $GTK_LIBS"
  4755.           cat > conftest.$ac_ext <<EOF
  4756. #line 4757 "configure"
  4757. #include "confdefs.h"
  4758.  
  4759. #include <gtk/gtk.h>
  4760. #include <stdio.h>
  4761.  
  4762. int main() {
  4763.  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
  4764. ; return 0; }
  4765. EOF
  4766. if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4767.   rm -rf conftest*
  4768.    echo "*** The test program compiled, but did not run. This usually means"
  4769.           echo "*** that the run-time linker is not finding GTK or finding the wrong"
  4770.           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
  4771.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4772.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  4773.           echo "*** is required on your system"
  4774.       echo "***"
  4775.           echo "*** If you have an old version installed, it is best to remove it, although"
  4776.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4777.           echo "***"
  4778.           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  4779.           echo "*** came with the system with the command"
  4780.           echo "***"
  4781.           echo "***    rpm --erase --nodeps gtk gtk-devel" 
  4782. else
  4783.   echo "configure: failed program was:" >&5
  4784.   cat conftest.$ac_ext >&5
  4785.   rm -rf conftest*
  4786.    echo "*** The test program failed to compile or link. See the file config.log for the"
  4787.           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
  4788.           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
  4789.           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
  4790. fi
  4791. rm -f conftest*
  4792.           CFLAGS="$ac_save_CFLAGS"
  4793.           LIBS="$ac_save_LIBS"
  4794.        fi
  4795.      fi
  4796.      GTK_CFLAGS=""
  4797.      GTK_LIBS=""
  4798.      HAVE_GTK="no"
  4799.   fi
  4800.   
  4801.   
  4802.   rm -f conf.gtktest
  4803.  
  4804. if test "${HAVE_GTK}" = "yes"; then
  4805.     cat >> confdefs.h <<\EOF
  4806. #define HAVE_GTK 1
  4807. EOF
  4808.  
  4809. fi
  4810.  
  4811.  
  4812. echo $ac_n "checking use of ElectricFence malloc debugging""... $ac_c" 1>&6
  4813. echo "configure:4814: checking use of ElectricFence malloc debugging" >&5
  4814. # Check whether --enable-efence or --disable-efence was given.
  4815. if test "${enable_efence+set}" = set; then
  4816.   enableval="$enable_efence"
  4817.   CONFIG_EFENCE="${enableval}"
  4818. else
  4819.   CONFIG_EFENCE="no"
  4820. fi
  4821.  
  4822.  
  4823. case "${CONFIG_EFENCE}" in
  4824. yes)
  4825.     echo $ac_n "checking for EF_Print in -lefence""... $ac_c" 1>&6
  4826. echo "configure:4827: checking for EF_Print in -lefence" >&5
  4827. ac_lib_var=`echo efence'_'EF_Print | sed 'y%./+-%__p_%'`
  4828. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4829.   echo $ac_n "(cached) $ac_c" 1>&6
  4830. else
  4831.   ac_save_LIBS="$LIBS"
  4832. LIBS="-lefence  $LIBS"
  4833. cat > conftest.$ac_ext <<EOF
  4834. #line 4835 "configure"
  4835. #include "confdefs.h"
  4836. /* Override any gcc2 internal prototype to avoid an error.  */
  4837. /* We use char because int might match the return type of a gcc2
  4838.     builtin and then its argument prototype would still apply.  */
  4839. char EF_Print();
  4840.  
  4841. int main() {
  4842. EF_Print()
  4843. ; return 0; }
  4844. EOF
  4845. if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4846.   rm -rf conftest*
  4847.   eval "ac_cv_lib_$ac_lib_var=yes"
  4848. else
  4849.   echo "configure: failed program was:" >&5
  4850.   cat conftest.$ac_ext >&5
  4851.   rm -rf conftest*
  4852.   eval "ac_cv_lib_$ac_lib_var=no"
  4853. fi
  4854. rm -f conftest*
  4855. LIBS="$ac_save_LIBS"
  4856.  
  4857. fi
  4858. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4859.   echo "$ac_t""yes" 1>&6
  4860.   HAVE_EFENCE="-lefence"
  4861. else
  4862.   echo "$ac_t""no" 1>&6
  4863. fi
  4864.  
  4865.     if test "x${HAVE_EFENCE}" != "x-lefence"; then
  4866.         echo "$ac_t""yes" 1>&6
  4867.     else
  4868.         LDADD="${LDADD} ${HAVE_EFENCE}"
  4869.         cat >> confdefs.h <<\EOF
  4870. #define HAVE_EFENCE 1
  4871. EOF
  4872.  
  4873.         echo "$ac_t"""${CONFIG_EFENCE}"" 1>&6
  4874.     fi
  4875.     ;;
  4876. no)
  4877.     echo "$ac_t"""${CONFIG_EFENCE}"" 1>&6
  4878.     ;;
  4879. *)
  4880.     { echo "configure: error: bad value »${CONFIG_EFENCE}« for efence option" 1>&2; exit 1; }
  4881.     ;;
  4882. esac
  4883.  
  4884.  
  4885. echo $ac_n "checking use of file io""... $ac_c" 1>&6
  4886. echo "configure:4887: checking use of file io" >&5
  4887. WARNING=
  4888. # Check whether --with-fileio or --without-fileio was given.
  4889. if test "${with_fileio+set}" = set; then
  4890.   withval="$with_fileio"
  4891.   CONFIG_FILEIO="${withval}"
  4892. else
  4893.   CONFIG_FILEIO="lame"
  4894. fi
  4895.  
  4896. # Check whether --with-sndfile-prefix or --without-sndfile-prefix was given.
  4897. if test "${with_sndfile_prefix+set}" = set; then
  4898.   withval="$with_sndfile_prefix"
  4899.   CONFIG_SNDFILE_PREFIX="${withval}"
  4900. else
  4901.   CONFIG_SNDFILE_PREFIX=""
  4902. fi
  4903.  
  4904. if test "${CONFIG_FILEIO}" = "sndfile" ; then
  4905.   if test "x${CONFIG_SNDFILE_PREFIX}" != "x" ; then 
  4906.     # look for sndfile lib. This overrides any standard location
  4907.     
  4908.     
  4909.   SNDFILE_LIB_LOC=
  4910.         libsndfile.a
  4911.   for FILE in \
  4912.       libsndfile.a; do
  4913.     for DIR in $CONFIG_SNDFILE_PREFIX $CONFIG_SNDFILE_PREFIX/lib $CONFIG_SNDFILE_PREFIX/.. $CONFIG_SNDFILE_PREFIX/../lib; do
  4914.             if test ".SNDFILE_LIB_LOC"="." && test -f "$DIR/$FILE"; then
  4915.         SNDFILE_LIB_LOC=$DIR
  4916.       fi
  4917.     done
  4918.   done
  4919.  
  4920.     
  4921.   SNDFILE_INC_LOC=
  4922.     for FILE in sndfile.h; do
  4923.     for DIR in $CONFIG_SNDFILE_PREFIX $CONFIG_SNDFILE_PREFIX/include $CONFIG_SNDFILE_PREFIX/.. $CONFIG_SNDFILE_PREFIX/../include; do
  4924.             if test ".SNDFILE_INC_LOC"="." && test -f "$DIR/$FILE"; then
  4925.         SNDFILE_INC_LOC=$DIR
  4926.       fi
  4927.     done
  4928.   done
  4929.  
  4930.   if test ".SNDFILE_LIB_LOC" = "." || test ".SNDFILE_INC_LOC" = "."; then
  4931.     SNDFILE_LIB_LOC=
  4932.     SNDFILE_INC_LOC=
  4933.   fi
  4934.  
  4935.     if test "x${SNDFILE_LIB_LOC}" != "x" ; then
  4936.       HAVE_SNDFILE="yes"
  4937.       FRONTEND_LDFLAGS="-L${SNDFILE_LIB_LOC} ${FRONTEND_LDFLAGS}"
  4938.       INCLUDES="-I${SNDFILE_INC_LOC} ${INCLUDES}"
  4939.     else
  4940.       WARNING="sndfile lib not found in specified prefix."
  4941.     fi
  4942.   fi
  4943.   if test "${HAVE_SNDFILE}" = "yes" ; then
  4944.     FRONTEND_LDADD="-lsndfile ${FRONTEND_LDADD}"
  4945.     cat >> confdefs.h <<\EOF
  4946. #define LIBSNDFILE 1
  4947. EOF
  4948.  
  4949.   else
  4950.     # default
  4951.     CONFIG_FILEIO="lame"
  4952.     WARNING="${WARNING} Could not find any sndfile lib on system."
  4953.   fi
  4954. else
  4955.   CONFIG_FILEIO="lame"
  4956. fi 
  4957. echo "$ac_t""${CONFIG_FILEIO}" 1>&6
  4958. if test "x${WARNING}" != "x" ; then
  4959.   echo "configure: warning: $WARNING" 1>&2
  4960. fi
  4961.  
  4962.  
  4963. echo $ac_n "checking use of analyzer hooks""... $ac_c" 1>&6
  4964. echo "configure:4965: checking use of analyzer hooks" >&5
  4965. # Check whether --enable-analyzer-hooks or --disable-analyzer-hooks was given.
  4966. if test "${enable_analyzer_hooks+set}" = set; then
  4967.   enableval="$enable_analyzer_hooks"
  4968.   CONFIG_ANALYZER="${enableval}"
  4969. else
  4970.   CONFIG_ANALYZER="yes"
  4971. fi
  4972.  
  4973.  
  4974. case "${CONFIG_ANALYZER}" in
  4975. yes)
  4976.     ;;
  4977. no)
  4978.     cat >> confdefs.h <<\EOF
  4979. #define NOANALYSIS 1
  4980. EOF
  4981.  
  4982.     ;;
  4983. *)
  4984.     { echo "configure: error: bad value »${CONFIG_ANALYZER}« for analyzer-hooks option" 1>&2; exit 1; }
  4985.     ;;
  4986. esac
  4987. echo "$ac_t""$CONFIG_ANALYZER" 1>&6
  4988.  
  4989.  
  4990. echo $ac_n "checking use of mpg123 decoder""... $ac_c" 1>&6
  4991. echo "configure:4992: checking use of mpg123 decoder" >&5
  4992. # Check whether --enable-decoder or --disable-decoder was given.
  4993. if test "${enable_decoder+set}" = set; then
  4994.   enableval="$enable_decoder"
  4995.   CONFIG_DECODER="${enableval}"
  4996. else
  4997.   CONFIG_DECODER="yes"
  4998. fi
  4999.  
  5000. # Check whether --enable-decode-layer1 or --disable-decode-layer1 was given.
  5001. if test "${enable_decode_layer1+set}" = set; then
  5002.   enableval="$enable_decode_layer1"
  5003.   CONFIG_DECODER_L1="${enableval}"
  5004. else
  5005.   CONFIG_DECODER_L1="yes"
  5006. fi
  5007.  
  5008. # Check whether --enable-decode-layer1 or --disable-decode-layer1 was given.
  5009. if test "${enable_decode_layer1+set}" = set; then
  5010.   enableval="$enable_decode_layer1"
  5011.   CONFIG_DECODER_L2="${enableval}"
  5012. else
  5013.   CONFIG_DECODER_L2="yes"
  5014. fi
  5015.  
  5016.  
  5017.  
  5018.  
  5019. if test "x${CONFIG_DECODER}" = "xyes"; then
  5020.   LIB_WITH_DECODER_TRUE=
  5021.   LIB_WITH_DECODER_FALSE='#'
  5022. else
  5023.   LIB_WITH_DECODER_TRUE='#'
  5024.   LIB_WITH_DECODER_FALSE=
  5025. fi
  5026.  
  5027. if test "${CONFIG_DECODER}" != "no" ; then
  5028.     CONFIG_DECODER="yes (Layer"
  5029.     cat >> confdefs.h <<\EOF
  5030. #define HAVE_MPGLIB 1
  5031. EOF
  5032.  
  5033.   
  5034.     if test "${CONFIG_DECODER_L1}" != "no"; then
  5035.         CONFIG_DECODER="${CONFIG_DECODER} 1,"
  5036.         cat >> confdefs.h <<\EOF
  5037. #define USE_LAYER_1 1
  5038. EOF
  5039.  
  5040.     fi
  5041.     if test "${CONFIG_DECODER_L2}" != "no"; then
  5042.         CONFIG_DECODER="${CONFIG_DECODER} 2,"
  5043.         cat >> confdefs.h <<\EOF
  5044. #define USE_LAYER_2 1
  5045. EOF
  5046.  
  5047.     fi
  5048.     CONFIG_DECODER="${CONFIG_DECODER} 3)"
  5049. fi
  5050. echo "$ac_t""$CONFIG_DECODER" 1>&6
  5051.  
  5052.  
  5053. WARNING=
  5054. # Check whether --with-vorbis or --without-vorbis was given.
  5055. if test "${with_vorbis+set}" = set; then
  5056.   withval="$with_vorbis"
  5057.   CONFIG_VORBIS="${withval}"
  5058. else
  5059.   CONFIG_VORBIS="no"
  5060. fi
  5061.  
  5062. # Check whether --with-vorbis-prefix or --without-vorbis-prefix was given.
  5063. if test "${with_vorbis_prefix+set}" = set; then
  5064.   withval="$with_vorbis_prefix"
  5065.   CONFIG_VORBIS_PREFIX="${withval}"
  5066. else
  5067.   CONFIG_VORBIS_PREFIX=""
  5068. fi
  5069.  
  5070. if test "${CONFIG_VORBIS}" != "no" ; then
  5071.   if test "x${CONFIG_VORBIS_PREFIX}" != "x" ; then
  5072.     # look for vorbis lib. This overrides any standard location
  5073.     
  5074.     
  5075.   VORBIS_LIB_LOC=
  5076.         libvorbis.a
  5077.   for FILE in \
  5078.       libvorbis.a; do
  5079.     for DIR in ${CONFIG_VORBIS_PREFIX} ${CONFIG_VORBIS_PREFIX}/lib ${CONFIG_VORBIS_PREFIX}/.. ${CONFIG_VORBIS_PREFIX}/../lib; do
  5080.             if test ".VORBIS_LIB_LOC"="." && test -f "$DIR/$FILE"; then
  5081.         VORBIS_LIB_LOC=$DIR
  5082.       fi
  5083.     done
  5084.   done
  5085.  
  5086.     
  5087.   VORBIS_INC_LOC=
  5088.     for FILE in vorbis/codec.h; do
  5089.     for DIR in ${CONFIG_VORBIS_PREFIX} ${CONFIG_VORBIS_PREFIX}/include ${CONFIG_VORBIS_PREFIX}/.. ${CONFIG_VORBIS_PREFIX}/../include; do
  5090.             if test ".VORBIS_INC_LOC"="." && test -f "$DIR/$FILE"; then
  5091.         VORBIS_INC_LOC=$DIR
  5092.       fi
  5093.     done
  5094.   done
  5095.  
  5096.   if test ".VORBIS_LIB_LOC" = "." || test ".VORBIS_INC_LOC" = "."; then
  5097.     VORBIS_LIB_LOC=
  5098.     VORBIS_INC_LOC=
  5099.   fi
  5100.  
  5101.     if test "x${VORBIS_LIB_LOC}" != "x" ; then
  5102.       HAVE_VORBIS="yes"
  5103.       FRONTEND_LDFLAGS="-L${VORBIS_LIB_LOC} ${FRONTEND_LDFLAGS}"
  5104.       INCLUDES="-I${VORBIS_INC_LOC} ${INCLUDES}"
  5105.     else
  5106.       WARNING="vorbis lib not found in specified prefix."
  5107.     fi
  5108.   fi
  5109.  
  5110.   echo $ac_n "checking for ogg_sync_init in -lvorbis""... $ac_c" 1>&6
  5111. echo "configure:5112: checking for ogg_sync_init in -lvorbis" >&5
  5112. ac_lib_var=`echo vorbis'_'ogg_sync_init | sed 'y%./+-%__p_%'`
  5113. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5114.   echo $ac_n "(cached) $ac_c" 1>&6
  5115. else
  5116.   ac_save_LIBS="$LIBS"
  5117. LIBS="-lvorbis  $LIBS"
  5118. cat > conftest.$ac_ext <<EOF
  5119. #line 5120 "configure"
  5120. #include "confdefs.h"
  5121. /* Override any gcc2 internal prototype to avoid an error.  */
  5122. /* We use char because int might match the return type of a gcc2
  5123.     builtin and then its argument prototype would still apply.  */
  5124. char ogg_sync_init();
  5125.  
  5126. int main() {
  5127. ogg_sync_init()
  5128. ; return 0; }
  5129. EOF
  5130. if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5131.   rm -rf conftest*
  5132.   eval "ac_cv_lib_$ac_lib_var=yes"
  5133. else
  5134.   echo "configure: failed program was:" >&5
  5135.   cat conftest.$ac_ext >&5
  5136.   rm -rf conftest*
  5137.   eval "ac_cv_lib_$ac_lib_var=no"
  5138. fi
  5139. rm -f conftest*
  5140. LIBS="$ac_save_LIBS"
  5141.  
  5142. fi
  5143. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5144.   echo "$ac_t""yes" 1>&6
  5145.   HAVE_VORBIS="yes"
  5146. else
  5147.   echo "$ac_t""no" 1>&6
  5148. fi
  5149.  
  5150.  
  5151.   if test "${HAVE_VORBIS}" = "yes" ; then
  5152.     FRONTEND_LDFLAGS="-lvorbis ${FRONTEND_LDFLAGS}"
  5153.     cat >> confdefs.h <<\EOF
  5154. #define HAVE_VORBIS 1
  5155. EOF
  5156.  
  5157.   else
  5158.     CONFIG_VORBIS="no"
  5159.   fi
  5160. fi
  5161. echo $ac_n "checking use of vorbis""... $ac_c" 1>&6
  5162. echo "configure:5163: checking use of vorbis" >&5
  5163. echo "$ac_t""${CONFIG_VORBIS}" 1>&6
  5164. if test "x${WARNING}" != "x" ; then
  5165.   echo "configure: warning: $WARNING" 1>&2
  5166. fi
  5167.  
  5168.  
  5169.  
  5170. echo $ac_n "checking if mp3x is requested""... $ac_c" 1>&6
  5171. echo "configure:5172: checking if mp3x is requested" >&5
  5172. # Check whether --enable-mp3x or --disable-mp3x was given.
  5173. if test "${enable_mp3x+set}" = set; then
  5174.   enableval="$enable_mp3x"
  5175.   WITH_MP3X="mp3x"
  5176. else
  5177.   WITH_MP3X=
  5178. fi
  5179.  
  5180. if test "x${WITH_MP3X}" = "xmp3x"; then
  5181.     echo "$ac_t""yes" 1>&6
  5182. else
  5183.     echo "$ac_t""no" 1>&6
  5184. fi
  5185.  
  5186. if test "${HAVE_GTK}" = "no"; then
  5187.     if test "x${WITH_MP3X}" = "xmp3x"; then
  5188.         echo "configure: warning: can't build mp3x" 1>&2
  5189.         WITH_MP3X=
  5190.     fi
  5191.     if test "x${CONFIG_ANALYZER}" != "xyes"; then
  5192.         echo "configure: warning: can't build mp3x because of disabled analyzer hooks" 1>&2
  5193.         WITH_MP3X=
  5194.     fi
  5195. fi
  5196.  
  5197. echo $ac_n "checking if mp3rtp is requested""... $ac_c" 1>&6
  5198. echo "configure:5199: checking if mp3rtp is requested" >&5
  5199. # Check whether --enable-mp3rtp or --disable-mp3rtp was given.
  5200. if test "${enable_mp3rtp+set}" = set; then
  5201.   enableval="$enable_mp3rtp"
  5202.   WITH_MP3RTP="mp3rtp"
  5203. else
  5204.   WITH_MP3RTP=
  5205. fi
  5206.  
  5207. if test "x${WITH_MP3RTP}" = "xmp3rtp"; then
  5208.     echo "$ac_t""yes" 1>&6
  5209. else
  5210.     echo "$ac_t""no" 1>&6
  5211. fi
  5212.  
  5213.  
  5214. #
  5215. # this is from vorbis
  5216. #
  5217. case $target in 
  5218. *86-*-linux*)
  5219.     # glibc < 2.1.3 has a serious FP bug in the math inline header
  5220.     # that will cripple Vorbis.  Look to see if the magic FP stack
  5221.     # clobber is missing in the mathinline header, thus indicating
  5222.     # the buggy version
  5223.  
  5224.     cat > conftest.$ac_ext <<EOF
  5225. #line 5226 "configure"
  5226. #include "confdefs.h"
  5227.  
  5228.         #define __LIBC_INTERNAL_MATH_INLINES 1
  5229.              #define __OPTIMIZE__
  5230.         #include <math.h>
  5231.         
  5232. EOF
  5233. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5234.   egrep "log10.*fldlg2.*fxch" >/dev/null 2>&1; then
  5235.   rm -rf conftest*
  5236.   bad=maybe
  5237. else
  5238.   rm -rf conftest*
  5239.   bad=no
  5240. fi
  5241. rm -f conftest*
  5242.  
  5243.  
  5244.     echo $ac_n "checking glibc mathinline bug""... $ac_c" 1>&6
  5245. echo "configure:5246: checking glibc mathinline bug" >&5
  5246.     if test ${bad} = "maybe" ;then
  5247.           cat > conftest.$ac_ext <<EOF
  5248. #line 5249 "configure"
  5249. #include "confdefs.h"
  5250.  
  5251.                 #define __LIBC_INTERNAL_MATH_INLINES 1
  5252.                      #define __OPTIMIZE__
  5253.                 #include <math.h>
  5254.                 
  5255. EOF
  5256. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5257.   egrep "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then
  5258.   rm -rf conftest*
  5259.   bad=no
  5260. else
  5261.   rm -rf conftest*
  5262.   bad=yes
  5263. fi
  5264. rm -f conftest*
  5265.  
  5266.     fi
  5267.     echo "$ac_t""${bad}" 1>&6
  5268.     if test ${bad} = "yes" ;then
  5269.  echo "configure: warning:                                                         " 1>&2
  5270.  echo "configure: warning: ********************************************************" 1>&2
  5271.  echo "configure: warning: * The glibc headers on this machine have a serious bug *" 1>&2
  5272.  echo "configure: warning: * in /usr/include/bits/mathinline.h  This bug affects  *" 1>&2
  5273.  echo "configure: warning: * all floating point code, not only LAME, but all code *" 1>&2
  5274.  echo "configure: warning: * built on this machine. Upgrading to glibc 2.1.3 is   *" 1>&2
  5275.  echo "configure: warning: * strongly urged to correct the problem.               *" 1>&2
  5276.  echo "configure: warning: *Note: that upgrading glibc will not fix any previously*" 1>&2
  5277.  echo "configure: warning: * built programs; this is a compile-time bug.          *" 1>&2
  5278.  echo "configure: warning: * To work around the problem for this build of LAME,   *" 1>&2
  5279.  echo "configure: warning: * autoconf is disabling all math inlining.  This will  *" 1>&2
  5280.  echo "configure: warning: * hurt LAME performace but is necessary for LAME to    *" 1>&2
  5281.  echo "configure: warning: * work correctly.  Once glibc is upgraded, rerun       *" 1>&2
  5282.  echo "configure: warning: * configure and make to build with inlining.           *" 1>&2
  5283.  echo "configure: warning: ********************************************************" 1>&2
  5284.  echo "configure: warning:                                                         " 1>&2
  5285.  
  5286.     cat >> confdefs.h <<\EOF
  5287. #define __NO_MATH_INLINES 1
  5288. EOF
  5289.  
  5290.     fi;;
  5291. esac
  5292.  
  5293.  
  5294. echo $ac_n "checking use of VBR bitrate histogram""... $ac_c" 1>&6
  5295. echo "configure:5296: checking use of VBR bitrate histogram" >&5
  5296. if test "x${HAVE_TERMCAP}" != "x"; then
  5297.   BRH_DEFAULT="yes"
  5298. else
  5299.   BRH_DEFAULT="no"
  5300. fi
  5301. # Check whether --enable-brhist or --disable-brhist was given.
  5302. if test "${enable_brhist+set}" = set; then
  5303.   enableval="$enable_brhist"
  5304.   CONFIG_BRHIST="${enableval}"
  5305. else
  5306.   CONFIG_BRHIST="${BRH_DEFAULT}"
  5307. fi
  5308.  
  5309. if test "${CONFIG_BRHIST}" != "no" ; then
  5310.     cat >> confdefs.h <<\EOF
  5311. #define BRHIST 1
  5312. EOF
  5313.  
  5314.  
  5315.     if test "${BRH_DEFAULT}" = "yes" ; then
  5316.         FRONTEND_LDADD="-l${HAVE_TERMCAP} ${FRONTEND_LDADD}"
  5317.         CONFIG_BRHIST="yes, with ${HAVE_TERMCAP}"
  5318.         cat >> confdefs.h <<\EOF
  5319. #define HAVE_TERMCAP 1
  5320. EOF
  5321.  
  5322.     else
  5323.         CONFIG_BRHIST="yes, simulated termcap"
  5324.     fi
  5325. fi
  5326. echo "$ac_t""${CONFIG_BRHIST}" 1>&6
  5327.  
  5328.  
  5329. if test "${CONFIG_BRHIST}" != "no"; then
  5330.   WITH_BRHIST_TRUE=
  5331.   WITH_BRHIST_FALSE='#'
  5332. else
  5333.   WITH_BRHIST_TRUE='#'
  5334.   WITH_BRHIST_FALSE=
  5335. fi
  5336.  
  5337.  
  5338.  
  5339. case $target_cpu in
  5340. *86)
  5341.     CPUTYPE="i386"
  5342.  
  5343.     # this may make a faster binary
  5344.     cat >> confdefs.h <<\EOF
  5345. #define TAKEHIRO_IEEE754_HACK 1
  5346. EOF
  5347.  
  5348.     ;;
  5349. *)
  5350.     CPUTYPE="no"
  5351.     ;;
  5352. esac
  5353.  
  5354.  
  5355.  
  5356. echo $ac_n "checking for FLOAT8 as float""... $ac_c" 1>&6
  5357. echo "configure:5358: checking for FLOAT8 as float" >&5
  5358. # Check whether --enable-all-float or --disable-all-float was given.
  5359. if test "${enable_all_float+set}" = set; then
  5360.   enableval="$enable_all_float"
  5361.   CONFIG_ALLFLOAT="${enableval}"
  5362. else
  5363.   CONFIG_ALLFLOAT="no"
  5364. fi
  5365.  
  5366. case "${CONFIG_ALLFLOAT}" in
  5367. no)
  5368.     ;;
  5369. yes)
  5370.     cat >> confdefs.h <<\EOF
  5371. #define FLOAT8 float
  5372. EOF
  5373.  
  5374.     ;;
  5375. *)
  5376.     { echo "configure: error: bad value »${CONFIG_ALLFLOAT}« for all-float option" 1>&2; exit 1; }
  5377.     ;;
  5378. esac
  5379. echo "$ac_t""${CONFIG_ALLFLOAT}" 1>&6
  5380.  
  5381.  
  5382.  
  5383. # Extract the first word of "nasm", so it can be a program name with args.
  5384. set dummy nasm; ac_word=$2
  5385. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5386. echo "configure:5387: checking for $ac_word" >&5
  5387. if eval "test \"`echo '$''{'ac_cv_path_NASM'+set}'`\" = set"; then
  5388.   echo $ac_n "(cached) $ac_c" 1>&6
  5389. else
  5390.   case "$NASM" in
  5391.   /*)
  5392.   ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
  5393.   ;;
  5394.   ?:/*)             
  5395.   ac_cv_path_NASM="$NASM" # Let the user override the test with a dos path.
  5396.   ;;
  5397.   *)
  5398.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  5399.   ac_dummy="$PATH"
  5400.   for ac_dir in $ac_dummy; do 
  5401.     test -z "$ac_dir" && ac_dir=.
  5402.     if test -f $ac_dir/$ac_word; then
  5403.       ac_cv_path_NASM="$ac_dir/$ac_word"
  5404.       break
  5405.     fi
  5406.   done
  5407.   IFS="$ac_save_ifs"
  5408.   test -z "$ac_cv_path_NASM" && ac_cv_path_NASM="no"
  5409.   ;;
  5410. esac
  5411. fi
  5412. NASM="$ac_cv_path_NASM"
  5413. if test -n "$NASM"; then
  5414.   echo "$ac_t""$NASM" 1>&6
  5415. else
  5416.   echo "$ac_t""no" 1>&6
  5417. fi
  5418.  
  5419. case "${NASM}" in
  5420. no)
  5421.     ;;
  5422. *)
  5423.     echo $ac_n "checking for assembler routines for this processor type""... $ac_c" 1>&6
  5424. echo "configure:5425: checking for assembler routines for this processor type" >&5
  5425.     for recurse_over in ${ASM_FOR_ARCH}
  5426.     do
  5427.         if test "${CPUTYPE}" = "${recurse_over}"; then
  5428.             include_asm_routines="yes"
  5429.         fi
  5430.     done
  5431.     if test "x${include_asm_routines}" = "xyes"; then
  5432.         cat >> confdefs.h <<\EOF
  5433. #define HAVE_NASM 1
  5434. EOF
  5435.  
  5436.         cat >> confdefs.h <<\EOF
  5437. #define MMX_choose_table 1
  5438. EOF
  5439.  
  5440.     else
  5441.         include_asm_routines="no"
  5442.         NASM="no"
  5443.     fi
  5444.     echo "$ac_t""${include_asm_routines}" 1>&6
  5445.     ;;
  5446. esac
  5447.  
  5448.  
  5449. if test "${NASM}" != "no"; then
  5450.   HAVE_NASM_TRUE=
  5451.   HAVE_NASM_FALSE='#'
  5452. else
  5453.   HAVE_NASM_TRUE='#'
  5454.   HAVE_NASM_FALSE=
  5455. fi
  5456.  
  5457. if test "x$CYGWIN" = "xyes"; then
  5458.     NASM_FORMAT="-f win32 -DWIN32"
  5459. else
  5460.     NASM_FORMAT="-f elf"
  5461. fi
  5462.  
  5463. echo $ac_n "checking for additional optimizations""... $ac_c" 1>&6
  5464. echo "configure:5465: checking for additional optimizations" >&5
  5465. # Check whether --enable-expopt or --disable-expopt was given.
  5466. if test "${enable_expopt+set}" = set; then
  5467.   enableval="$enable_expopt"
  5468.   CONFIG_EXPOPT="${enableval}"
  5469. else
  5470.   CONFIG_EXPOPT="no"
  5471. fi
  5472.  
  5473.  
  5474. if test "x$GCC" = "xyes"; then
  5475.     # gcc defaults. OS specific options go in versious sections below
  5476.         # from the gcc man pages:  "there is no reason to use -pedantic"
  5477.     CFLAGS="-Wall -pipe ${CFLAGS}"
  5478.  
  5479.     OPTIMIZATION="-O3 -fomit-frame-pointer -ffast-math -funroll-loops"
  5480.  
  5481.     OPTIMIZATION_NORM="-fthread-jumps -malign-double -frerun-loop-opt \
  5482.         -fgcse -fexpensive-optimizations"
  5483.  
  5484.     OPTIMIZATION_FULL="-fmove-all-movables -fschedule-insns2 \
  5485.         -freduce-all-givs"
  5486.  
  5487.     case "${CONFIG_EXPOPT}" in
  5488.     no)
  5489.         ;;
  5490.     norm|yes)
  5491.         OPTIMIZATION="${OPTIMIZATION} ${OPTIMIZATION_NORM}"
  5492.         ;;
  5493.     full)
  5494.         OPTIMIZATION="${OPTIMIZATION} ${OPTIMIZATION_NORM} \
  5495.             ${OPTIMIZATION_FULL}"
  5496.  
  5497.         # some hardware dependend options
  5498.         case "${GCC_version}" in
  5499.         2.9*|3.*)
  5500.             # "new" GCC, use some "new" CPU specific optimizations
  5501.             case ${target_cpu} in
  5502.             *486)
  5503.                 OPTIMIZATION="${OPTIMIZATION} -m486 \
  5504.                     -mfancy-math-387"
  5505.                 ;;
  5506.             *586)
  5507.                 OPTIMIZATION="${OPTIMIZATION} -mpentium \
  5508.                     -march=pentium -mfancy-math-387"
  5509.                 ;;
  5510.             *686)
  5511.                 OPTIMIZATION="${OPTIMIZATION} -mpentiumpro \
  5512.                     -march=pentiumpro -mfancy-math-387"
  5513.                 ;;
  5514.             *86)
  5515.                 OPTIMIZATION="${OPTIMIZATION} -mfancy-math-387"
  5516.                 ;;
  5517.             alpha*)
  5518.                 OPTIMIZATION="${OPTIMIZATION} -mfp-regs"
  5519.                 cat >> confdefs.h <<\EOF
  5520. #define FLOAT double
  5521. EOF
  5522.  
  5523.                 # add "-mcpu=21164a -Wa,-m21164a" to optimize
  5524.                 # for 21164a (ev56) CPU
  5525.                 ;;
  5526.             *)
  5527.                 OPTIMIZATION="${OPTIMIZATION} -fdelayed-branch"
  5528.                 ;;
  5529.             esac
  5530.         ;;
  5531.     *)
  5532.         { echo "configure: error: bad value »${CONFIG_EXPOPT}« for expopt option" 1>&2; exit 1; }
  5533.         ;;
  5534.     esac
  5535. esac
  5536.  
  5537.     echo "$ac_t""${CONFIG_EXPOPT}" 1>&6
  5538. else
  5539.     echo "$ac_t""no" 1>&6
  5540. fi
  5541.  
  5542.  
  5543.  
  5544.  
  5545.  
  5546. echo $ac_n "checking for debug options""... $ac_c" 1>&6
  5547. echo "configure:5548: checking for debug options" >&5
  5548. # Check whether --enable-debug or --disable-debug was given.
  5549. if test "${enable_debug+set}" = set; then
  5550.   enableval="$enable_debug"
  5551.   CONFIG_DEBUG="${enableval}"
  5552. else
  5553.   CONFIG_DEBUG="no"
  5554. fi
  5555.  
  5556.  
  5557. if test "x$GCC" = "xyes"; then
  5558.     DEBUG_NORM_OPT="-O -g -Wall"
  5559.     DEBUG_ANOYING="-Wbad-function-cast -Wcast-align \
  5560.         -Wcast-qual -Wchar-subscripts -Wconversion \
  5561.         -Wmissing-prototypes -Wnested-externs -Wpointer-arith \
  5562.         -Wredundant-decls -Wshadow -Wstrict-prototypes \
  5563.         -Wwrite-strings -Winline \
  5564.         -Wformat -Wswitch -Waggregate-return -Wmissing-noreturn \
  5565.         -Wimplicit-int -fno-builtin"
  5566.  
  5567.     case "${CONFIG_DEBUG}" in
  5568.     no)
  5569.         cat >> confdefs.h <<\EOF
  5570. #define NDEBUG 1
  5571. EOF
  5572.  
  5573.         ;;
  5574.     norm|yes)
  5575.         cat >> confdefs.h <<\EOF
  5576. #define ABORTFP 1
  5577. EOF
  5578.  
  5579.         OPTIMIZATION="${DEBUG_NORM_OPT}"
  5580.         ;;
  5581.     anoying)
  5582.         cat >> confdefs.h <<\EOF
  5583. #define ABORTFP 1
  5584. EOF
  5585.  
  5586.         OPTIMIZATION="${DEBUG_NORM_OPT} ${DEBUG_ANOYING}"
  5587.         ;;
  5588.     alot)
  5589.         cat >> confdefs.h <<\EOF
  5590. #define ABORTFP 1
  5591. EOF
  5592.  
  5593.         cat >> confdefs.h <<\EOF
  5594. #define DEBUG 1
  5595. EOF
  5596.  
  5597.         OPTIMIZATION="${DEBUG_NORM_OPT}"
  5598.         ;;
  5599.     *)
  5600.         { echo "configure: error: bad value »${CONFIG_DEBUG}« for debug option" 1>&2; exit 1; }
  5601.     esac
  5602.  
  5603.     echo "$ac_t""${CONFIG_DEBUG}" 1>&6
  5604. else
  5605.     echo "$ac_t""no" 1>&6
  5606. fi
  5607.  
  5608.  
  5609.  
  5610.  
  5611. ##########################################################################
  5612. # LINUX on Digital/Compaq Alpha CPUs
  5613. ##########################################################################
  5614. case $target in
  5615. alpha*-*-linux*)
  5616.  
  5617. ################################################################
  5618. #### Check if 'ccc' is in our path
  5619. ################################################################
  5620. if test "`which ccc 2>/dev/null | grep -c ccc`" != "0" ; then
  5621.     # Compaq's C Compiler
  5622.     CC=ccc
  5623.  
  5624. ################################################################
  5625. #### set 'OPTIMIZATION = -arch host -tune host' 
  5626. ####              to generate/tune instructions for this machine
  5627. ####     'OPTIMIZATION += -migrate -fast -inline speed -unroll 0' 
  5628. ####              tweak to run as fast as possible :)
  5629. ####     'OPTIMIZATION += -w0' 
  5630. ####              set warning and linking flags
  5631. ################################################################
  5632.     OPTIMIZATION="-arch host -tune host"
  5633.     OPTIMIZATION="-migrate -fast -inline speed -unroll 0 $OPTIMIZATION"
  5634.     OPTIMIZATION="-w0 $OPTIMIZATION"
  5635.  
  5636.  
  5637. ################################################################
  5638. #### to debug, uncomment
  5639. ################################################################
  5640.     # For Debugging
  5641.     #OPTIMIZATION="-g3 $OPTIMIZATION"
  5642.  
  5643. ################################################################
  5644. #### define __DECALPHA__ (i was getting re-declaration warnings
  5645. ####   in machine.h
  5646. ################################################################
  5647.     # Define DEC Alpha
  5648.     cat >> confdefs.h <<\EOF
  5649. #define __DECALPHA__ 1
  5650. EOF
  5651.  
  5652. fi  #  gcc or ccc?
  5653. ;; # alpha
  5654.  
  5655.  
  5656. ##########################################################################
  5657. # SunOS
  5658. ##########################################################################
  5659. sparc-*-sunos4*)
  5660.     CC="cc"
  5661.     OPTIMIZATION="-O -xCC"
  5662.     MAKEDEP="-xM"
  5663.     # for gcc, use instead:
  5664.     #   CC="gcc"
  5665.     #   OPTIMIZATION="-O"
  5666.     #   MAKEDEP="-M"
  5667.     endif
  5668. ;; #SunOS
  5669.  
  5670. ##########################################################################
  5671. # SGI
  5672. ##########################################################################
  5673. *-sgi-irix*)
  5674.     CC="cc"
  5675.     OPTIMIZATION="-O3 -woff all"
  5676. ;; # SGI
  5677.  
  5678. ##########################################################################
  5679. # Compaq Alpha running Dec Unix (OSF)
  5680. ##########################################################################
  5681. alpha*-dec-osf*)
  5682.     CC = cc
  5683.     OPTIMIZATION="-fast -O3 -std -g3 -non_shared"
  5684. ;; #OSF
  5685.  
  5686. ##########################################################################
  5687. # BeOS
  5688. ##########################################################################
  5689. *-*-beos*) # todo:is this the right string ?
  5690.     CC="\$(BE_C_COMPILER)"
  5691.     case $target in
  5692.     bepc*-*-*) # todo: is this right architecture ? was: if ($(ARCH),BePC)
  5693.        OPTIMIZATION="-O9 -fomit-frame-pointer -march=pentium \
  5694.             -mcpu=pentium -ffast-math -funroll-loops \
  5695.             -fprofile-arcs -fbranch-probabilities"
  5696.     ;;
  5697.        *) OPTIMIZATION="-opt all"
  5698.        MAKEDEP="-make"
  5699.     ;;
  5700.     esac
  5701. ;; #BeOS
  5702. esac
  5703.  
  5704. # todo: include the following tests in the case-list
  5705. UNAME=`uname`
  5706. ARCH=`uname -m`
  5707.  
  5708. ###########################################################################
  5709. # MOSXS (Rhapsody PPC)
  5710. ###########################################################################
  5711. if test "$UNAME" = "Rhapsody"; then
  5712. #   CC="cc"   # should be handled already by autoconf
  5713.    MAKEDEP="-make"
  5714. fi
  5715.  
  5716. ##########################################################################
  5717. # OS/2
  5718. ##########################################################################
  5719. # Properly installed EMX runtime & development package is a prerequisite.
  5720. # tools I used: make 3.76.1, uname 1.12, sed 2.05, PD-ksh 5.2.13
  5721. #
  5722. ##########################################################################
  5723. if test "$UNAME" = "OS/2"; then
  5724.    SHELL=sh
  5725.    #CC=gcc # should already be handled by configure
  5726.  
  5727.    # file extension should already be handled by automake (I don't know,
  5728.    # please  give feedback!
  5729.    #FILE_EXTENSION=".exe"
  5730.  
  5731. # Uncomment & inspect the GTK lines to use MP3x GTK frame analyzer.
  5732. # Properly installed XFree86/devlibs & GTK+ is a prerequisite.
  5733. # The following works for me using Xfree86/OS2 3.3.5 and GTK+ 1.2.3:
  5734. #   AC_DEFINE(HAVE_GTK, 1, have GTK)
  5735. #   AC_DEFINE(__ST_MT_ERRNO__, 1)
  5736. #   INCLUDES="-IC:/XFree86/include/gtk12 -IC:/XFree86/include/glib12 \
  5737. #             -IC:/XFree86/include $INCLUDES"
  5738. #   FRONTEND_LDFLAGS="-LC:/XFree86/lib -lgtk12 -lgdk12 -lgmodule -lglib12 \
  5739. #             -lXext -lX11 -lshm -lbsd -lsocket -lm $FRONTEND_LDFLAGS"
  5740. #   FRONTEND_CFLAGS="-Zmtd -Zsysv-signals -Zbin-files $FRONTEND_CFLAGS"
  5741. fi
  5742.  
  5743. ###########################################################################
  5744. # MSDOS/Windows
  5745. ###########################################################################
  5746. if test "$UNAME" = "MSDOS"; then
  5747.   # file extension should alredy be handled by automake (I don't know, please
  5748.   # give feedback!
  5749.   #FILE_EXTENSION=".exe"
  5750.   RM_F=
  5751. fi
  5752.  
  5753. ###########################################################################
  5754. # AmigaOS
  5755. ###########################################################################
  5756. # Type 'Make ARCH=PPC' for PowerUP and 'Make ARCH=WOS' for WarpOS
  5757. #
  5758. ###########################################################################
  5759. if test "$UNAME" = "AmigaOS" ; then
  5760.     CC="gcc -noixemul"
  5761.     OPTIMIZATION=$OPTIMIZATION -m68020-60 -m68881
  5762.     MAKEDEP="-MM"
  5763.     if test "$ARCH" = "WOS"; then
  5764.         CC="ppc-amigaos-gcc -warpup"
  5765.         OPTIMIZATION=$OPTIMIZATION -mmultiple -mcpu=603e"
  5766.         AR="ppc-amigaos-ar"
  5767.         RANLIB="ppc-amigaos-ranlib"
  5768.     fi
  5769.     if test "$ARCH",PPC; then
  5770.         CC="ppc-amigaos-gcc"
  5771.         OPTIMIZATION=$OPTIMIZATION -mmultiple -mcpu=603e"
  5772.         AR="ppc-amigaos-ar"
  5773.         RANLIB="ppc-amigaos-ranlib"
  5774.     fi
  5775. fi
  5776.  
  5777.  
  5778. CFLAGS="${OPTIMIZATION} ${CFLAGS}"
  5779. LDADD="${CONFIG_MATH_LIB} ${LDADD}"
  5780.  
  5781.  
  5782.  
  5783.  
  5784.  
  5785.  
  5786.  
  5787.  
  5788.  
  5789.  
  5790.  
  5791.  
  5792.  
  5793.  
  5794.  
  5795.  
  5796.  
  5797.  
  5798.  
  5799.  
  5800.  
  5801.  
  5802.  
  5803.  
  5804.  
  5805.  
  5806.  
  5807.  
  5808. trap '' 1 2 15
  5809. cat > confcache <<\EOF
  5810. # This file is a shell script that caches the results of configure
  5811. # tests run on this system so they can be shared between configure
  5812. # scripts and configure runs.  It is not useful on other systems.
  5813. # If it contains results you don't want to keep, you may remove or edit it.
  5814. #
  5815. # By default, configure uses ./config.cache as the cache file,
  5816. # creating it if it does not exist already.  You can give configure
  5817. # the --cache-file=FILE option to use a different cache file; that is
  5818. # what configure does when it calls configure scripts in
  5819. # subdirectories, so they share the cache.
  5820. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  5821. # config.status only pays attention to the cache file if you give it the
  5822. # --recheck option to rerun configure.
  5823. #
  5824. EOF
  5825. # The following way of writing the cache mishandles newlines in values,
  5826. # but we know of no workaround that is simple, portable, and efficient.
  5827. # So, don't put newlines in cache variables' values.
  5828. # Ultrix sh set writes to stderr and can't be redirected directly,
  5829. # and sets the high bit in the cache file unless we assign to the vars.
  5830. (set) 2>&1 |
  5831.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5832.   *ac_space=\ *)
  5833.     # `set' does not quote correctly, so add quotes (double-quote substitution
  5834.     # turns \\\\ into \\, and sed turns \\ into \).
  5835.     sed -n \
  5836.       -e "s/'/'\\\\''/g" \
  5837.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  5838.     ;;
  5839.   *)
  5840.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  5841.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  5842.     ;;
  5843.   esac >> confcache
  5844. if cmp -s $cache_file confcache; then
  5845.   :
  5846. else
  5847.   if test -w $cache_file; then
  5848.     echo "updating cache $cache_file"
  5849.     cat confcache > $cache_file
  5850.   else
  5851.     echo "not updating unwritable cache $cache_file"
  5852.   fi
  5853. fi
  5854. rm -f confcache
  5855.  
  5856. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  5857.  
  5858. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5859. # Let make expand exec_prefix.
  5860. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5861.  
  5862. # Any assignment to VPATH causes Sun make to only execute
  5863. # the first set of double-colon rules, so remove it if not needed.
  5864. # If there is a colon in the path, we need to keep it.
  5865. if test "x$srcdir" = x.; then
  5866.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  5867. fi
  5868.  
  5869. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  5870.  
  5871. DEFS=-DHAVE_CONFIG_H
  5872.  
  5873. # Without the "./", some shells look in PATH for config.status.
  5874. : ${CONFIG_STATUS=./config.status}
  5875.  
  5876. echo creating $CONFIG_STATUS
  5877. rm -f $CONFIG_STATUS
  5878. cat > $CONFIG_STATUS <<EOF
  5879. #! /bin/sh
  5880. # Generated automatically by configure.
  5881. # Run this file to recreate the current configuration.
  5882. # This directory was configured as follows,
  5883. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  5884. #
  5885. # $0 $ac_configure_args
  5886. #
  5887. # Compiler output produced by configure, useful for debugging
  5888. # configure, is in ./config.log if it exists.
  5889.  
  5890. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  5891. for ac_option
  5892. do
  5893.   case "\$ac_option" in
  5894.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5895.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  5896.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  5897.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  5898.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  5899.     exit 0 ;;
  5900.   -help | --help | --hel | --he | --h)
  5901.     echo "\$ac_cs_usage"; exit 0 ;;
  5902.   *) echo "\$ac_cs_usage"; exit 1 ;;
  5903.   esac
  5904. done
  5905.  
  5906. ac_given_srcdir=$srcdir
  5907. ac_given_INSTALL="$INSTALL"
  5908.  
  5909. trap 'rm -fr `echo "Makefile libmp3lame/Makefile libmp3lame/i386/Makefile frontend/Makefile mpglib/Makefile doc/Makefile doc/html/Makefile doc/man/Makefile include/Makefile Dll/Makefile misc/Makefile debian/Makefile dshow/Makefile lame.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  5910. EOF
  5911. cat >> $CONFIG_STATUS <<EOF
  5912.  
  5913. # Protect against being on the right side of a sed subst in config.status.
  5914. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  5915.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  5916. $ac_vpsub
  5917. $extrasub
  5918. s%@SHELL@%$SHELL%g
  5919. s%@CFLAGS@%$CFLAGS%g
  5920. s%@CPPFLAGS@%$CPPFLAGS%g
  5921. s%@CXXFLAGS@%$CXXFLAGS%g
  5922. s%@FFLAGS@%$FFLAGS%g
  5923. s%@DEFS@%$DEFS%g
  5924. s%@LDFLAGS@%$LDFLAGS%g
  5925. s%@LIBS@%$LIBS%g
  5926. s%@exec_prefix@%$exec_prefix%g
  5927. s%@prefix@%$prefix%g
  5928. s%@program_transform_name@%$program_transform_name%g
  5929. s%@bindir@%$bindir%g
  5930. s%@sbindir@%$sbindir%g
  5931. s%@libexecdir@%$libexecdir%g
  5932. s%@datadir@%$datadir%g
  5933. s%@sysconfdir@%$sysconfdir%g
  5934. s%@sharedstatedir@%$sharedstatedir%g
  5935. s%@localstatedir@%$localstatedir%g
  5936. s%@libdir@%$libdir%g
  5937. s%@includedir@%$includedir%g
  5938. s%@oldincludedir@%$oldincludedir%g
  5939. s%@infodir@%$infodir%g
  5940. s%@mandir@%$mandir%g
  5941. s%@host@%$host%g
  5942. s%@host_alias@%$host_alias%g
  5943. s%@host_cpu@%$host_cpu%g
  5944. s%@host_vendor@%$host_vendor%g
  5945. s%@host_os@%$host_os%g
  5946. s%@target@%$target%g
  5947. s%@target_alias@%$target_alias%g
  5948. s%@target_cpu@%$target_cpu%g
  5949. s%@target_vendor@%$target_vendor%g
  5950. s%@target_os@%$target_os%g
  5951. s%@build@%$build%g
  5952. s%@build_alias@%$build_alias%g
  5953. s%@build_cpu@%$build_cpu%g
  5954. s%@build_vendor@%$build_vendor%g
  5955. s%@build_os@%$build_os%g
  5956. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  5957. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  5958. s%@INSTALL_DATA@%$INSTALL_DATA%g
  5959. s%@PACKAGE@%$PACKAGE%g
  5960. s%@VERSION@%$VERSION%g
  5961. s%@ACLOCAL@%$ACLOCAL%g
  5962. s%@AUTOCONF@%$AUTOCONF%g
  5963. s%@AUTOMAKE@%$AUTOMAKE%g
  5964. s%@AUTOHEADER@%$AUTOHEADER%g
  5965. s%@MAKEINFO@%$MAKEINFO%g
  5966. s%@AMTAR@%$AMTAR%g
  5967. s%@install_sh@%$install_sh%g
  5968. s%@AWK@%$AWK%g
  5969. s%@SET_MAKE@%$SET_MAKE%g
  5970. s%@AMDEP@%$AMDEP%g
  5971. s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g
  5972. s%@DEPDIR@%$DEPDIR%g
  5973. s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
  5974. s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
  5975. s%@MAINT@%$MAINT%g
  5976. s%@_am_include@%$_am_include%g
  5977. s%@RANLIB@%$RANLIB%g
  5978. s%@CC@%$CC%g
  5979. s%@CPP@%$CPP%g
  5980. s%@CCDEPMODE@%$CCDEPMODE%g
  5981. s%@LN_S@%$LN_S%g
  5982. s%@LIBTOOL@%$LIBTOOL%g
  5983. s%@EXEEXT@%$EXEEXT%g
  5984. s%@U@%$U%g
  5985. s%@ANSI2KNR@%$ANSI2KNR%g
  5986. s%@ALLOCA@%$ALLOCA%g
  5987. s%@GTK_CONFIG@%$GTK_CONFIG%g
  5988. s%@GTK_CFLAGS@%$GTK_CFLAGS%g
  5989. s%@GTK_LIBS@%$GTK_LIBS%g
  5990. s%@LIB_WITH_DECODER_TRUE@%$LIB_WITH_DECODER_TRUE%g
  5991. s%@LIB_WITH_DECODER_FALSE@%$LIB_WITH_DECODER_FALSE%g
  5992. s%@WITH_BRHIST_TRUE@%$WITH_BRHIST_TRUE%g
  5993. s%@WITH_BRHIST_FALSE@%$WITH_BRHIST_FALSE%g
  5994. s%@NASM@%$NASM%g
  5995. s%@HAVE_NASM_TRUE@%$HAVE_NASM_TRUE%g
  5996. s%@HAVE_NASM_FALSE@%$HAVE_NASM_FALSE%g
  5997. s%@INCLUDES@%$INCLUDES%g
  5998. s%@FRONTEND_LDFLAGS@%$FRONTEND_LDFLAGS%g
  5999. s%@FRONTEND_CFLAGS@%$FRONTEND_CFLAGS%g
  6000. s%@FRONTEND_LDADD@%$FRONTEND_LDADD%g
  6001. s%@LDADD@%$LDADD%g
  6002. s%@LIB_MAJOR_VERSION@%$LIB_MAJOR_VERSION%g
  6003. s%@LIB_MINOR_VERSION@%$LIB_MINOR_VERSION%g
  6004. s%@NASM_FORMAT@%$NASM_FORMAT%g
  6005. s%@MAKEDEP@%$MAKEDEP%g
  6006. s%@RM_F@%$RM_F%g
  6007. s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
  6008. s%@WITH_MP3X@%$WITH_MP3X%g
  6009. s%@WITH_MP3RTP@%$WITH_MP3RTP%g
  6010. s%@CPUTYPE@%$CPUTYPE%g
  6011. s%@CONFIG_DEFS@%$CONFIG_DEFS%g
  6012.  
  6013. CEOF
  6014. EOF
  6015.  
  6016. cat >> $CONFIG_STATUS <<\EOF
  6017.  
  6018. # Split the substitutions into bite-sized pieces for seds with
  6019. # small command number limits, like on Digital OSF/1 and HP-UX.
  6020. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  6021. ac_file=1 # Number of current file.
  6022. ac_beg=1 # First line for current file.
  6023. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  6024. ac_more_lines=:
  6025. ac_sed_cmds=""
  6026. while $ac_more_lines; do
  6027.   if test $ac_beg -gt 1; then
  6028.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  6029.   else
  6030.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  6031.   fi
  6032.   if test ! -s conftest.s$ac_file; then
  6033.     ac_more_lines=false
  6034.     rm -f conftest.s$ac_file
  6035.   else
  6036.     if test -z "$ac_sed_cmds"; then
  6037.       ac_sed_cmds="sed -f conftest.s$ac_file"
  6038.     else
  6039.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  6040.     fi
  6041.     ac_file=`expr $ac_file + 1`
  6042.     ac_beg=$ac_end
  6043.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  6044.   fi
  6045. done
  6046. if test -z "$ac_sed_cmds"; then
  6047.   ac_sed_cmds=cat
  6048. fi
  6049. EOF
  6050.  
  6051. cat >> $CONFIG_STATUS <<EOF
  6052.  
  6053. CONFIG_FILES=\${CONFIG_FILES-"Makefile libmp3lame/Makefile libmp3lame/i386/Makefile frontend/Makefile mpglib/Makefile doc/Makefile doc/html/Makefile doc/man/Makefile include/Makefile Dll/Makefile misc/Makefile debian/Makefile dshow/Makefile lame.spec"}
  6054. EOF
  6055. cat >> $CONFIG_STATUS <<\EOF
  6056. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  6057.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6058.   case "$ac_file" in
  6059.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  6060.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  6061.   *) ac_file_in="${ac_file}.in" ;;
  6062.   esac
  6063.  
  6064.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  6065.  
  6066.   # Remove last slash and all that follows it.  Not all systems have dirname.
  6067.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  6068.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  6069.     # The file is in a subdirectory.
  6070.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  6071.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  6072.     # A "../" for each directory in $ac_dir_suffix.
  6073.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  6074.   else
  6075.     ac_dir_suffix= ac_dots=
  6076.   fi
  6077.  
  6078.   case "$ac_given_srcdir" in
  6079.   .)  srcdir=.
  6080.       if test -z "$ac_dots"; then top_srcdir=.
  6081.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  6082.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  6083.   *) # Relative path.
  6084.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  6085.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  6086.   esac
  6087.  
  6088.   case "$ac_given_INSTALL" in
  6089.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  6090.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  6091.   esac
  6092.  
  6093.   echo creating "$ac_file"
  6094.   rm -f "$ac_file"
  6095.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  6096.   case "$ac_file" in
  6097.   *Makefile*) ac_comsub="1i\\
  6098. # $configure_input" ;;
  6099.   *) ac_comsub= ;;
  6100.   esac
  6101.  
  6102.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  6103.   sed -e "$ac_comsub
  6104. s%@configure_input@%$configure_input%g
  6105. s%@srcdir@%$srcdir%g
  6106. s%@top_srcdir@%$top_srcdir%g
  6107. s%@INSTALL@%$INSTALL%g
  6108. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  6109. fi; done
  6110. rm -f conftest.s*
  6111.  
  6112. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  6113. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  6114. #
  6115. # ac_d sets the value in "#define NAME VALUE" lines.
  6116. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  6117. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  6118. ac_dC='\3'
  6119. ac_dD='%g'
  6120. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  6121. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  6122. ac_uB='\([     ]\)%\1#\2define\3'
  6123. ac_uC=' '
  6124. ac_uD='\4%g'
  6125. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  6126. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  6127. ac_eB='$%\1#\2define\3'
  6128. ac_eC=' '
  6129. ac_eD='%g'
  6130.  
  6131. if test "${CONFIG_HEADERS+set}" != set; then
  6132. EOF
  6133. cat >> $CONFIG_STATUS <<EOF
  6134.   CONFIG_HEADERS="config.h"
  6135. EOF
  6136. cat >> $CONFIG_STATUS <<\EOF
  6137. fi
  6138. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  6139.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6140.   case "$ac_file" in
  6141.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  6142.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  6143.   *) ac_file_in="${ac_file}.in" ;;
  6144.   esac
  6145.  
  6146.   echo creating $ac_file
  6147.  
  6148.   rm -f conftest.frag conftest.in conftest.out
  6149.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  6150.   cat $ac_file_inputs > conftest.in
  6151.  
  6152. EOF
  6153.  
  6154. # Transform confdefs.h into a sed script conftest.vals that substitutes
  6155. # the proper values into config.h.in to produce config.h.  And first:
  6156. # Protect against being on the right side of a sed subst in config.status.
  6157. # Protect against being in an unquoted here document in config.status.
  6158. rm -f conftest.vals
  6159. cat > conftest.hdr <<\EOF
  6160. s/[\\&%]/\\&/g
  6161. s%[\\$`]%\\&%g
  6162. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  6163. s%ac_d%ac_u%gp
  6164. s%ac_u%ac_e%gp
  6165. EOF
  6166. sed -n -f conftest.hdr confdefs.h > conftest.vals
  6167. rm -f conftest.hdr
  6168.  
  6169. # This sed command replaces #undef with comments.  This is necessary, for
  6170. # example, in the case of _POSIX_SOURCE, which is predefined and required
  6171. # on some systems where configure will not decide to define it.
  6172. cat >> conftest.vals <<\EOF
  6173. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  6174. EOF
  6175.  
  6176. # Break up conftest.vals because some shells have a limit on
  6177. # the size of here documents, and old seds have small limits too.
  6178.  
  6179. rm -f conftest.tail
  6180. while :
  6181. do
  6182.   ac_lines=`grep -c . conftest.vals`
  6183.   # grep -c gives empty output for an empty file on some AIX systems.
  6184.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  6185.   # Write a limited-size here document to conftest.frag.
  6186.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  6187.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  6188.   echo 'CEOF
  6189.   sed -f conftest.frag conftest.in > conftest.out
  6190.   rm -f conftest.in
  6191.   mv conftest.out conftest.in
  6192. ' >> $CONFIG_STATUS
  6193.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  6194.   rm -f conftest.vals
  6195.   mv conftest.tail conftest.vals
  6196. done
  6197. rm -f conftest.vals
  6198.  
  6199. cat >> $CONFIG_STATUS <<\EOF
  6200.   rm -f conftest.frag conftest.h
  6201.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  6202.   cat conftest.in >> conftest.h
  6203.   rm -f conftest.in
  6204.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  6205.     echo "$ac_file is unchanged"
  6206.     rm -f conftest.h
  6207.   else
  6208.     # Remove last slash and all that follows it.  Not all systems have dirname.
  6209.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  6210.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  6211.       # The file is in a subdirectory.
  6212.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  6213.     fi
  6214.     rm -f $ac_file
  6215.     mv conftest.h $ac_file
  6216.   fi
  6217. fi; done
  6218.  
  6219. EOF
  6220. cat >> $CONFIG_STATUS <<EOF
  6221. am_indx=1
  6222.   for am_file in config.h; do
  6223.     case " $CONFIG_HEADERS " in
  6224.     *" $am_file "*)
  6225.       echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
  6226.       ;;
  6227.     esac
  6228.     am_indx=\`expr \$am_indx + 1\`
  6229.   done
  6230. AMDEP="$AMDEP"
  6231. ac_aux_dir="$ac_aux_dir"
  6232.  
  6233. EOF
  6234. cat >> $CONFIG_STATUS <<\EOF
  6235. test -z "$CONFIG_HEADERS" || echo timestamp >       stamp-h
  6236.  
  6237. test x"$AMDEP" != x"" ||
  6238. for mf in $CONFIG_FILES; do
  6239.   case "$mf" in
  6240.   Makefile) dirpart=.;;
  6241.   */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
  6242.   *) continue;;
  6243.   esac
  6244.   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  6245.   # Extract the definition of DEP_FILES from the Makefile without
  6246.   # running `make'.
  6247.   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  6248.   test -z "$DEPDIR" && continue
  6249.   # When using ansi2knr, U may be empty or an underscore; expand it
  6250.   U=`sed -n -e '/^U = / s///p' < "$mf"`
  6251.   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  6252.   # We invoke sed twice because it is the simplest approach to
  6253.   # changing $(DEPDIR) to its actual value in the expansion.
  6254.   for file in `sed -n -e '
  6255.     /^DEP_FILES = .*\\\\$/ {
  6256.       s/^DEP_FILES = //
  6257.       :loop
  6258.     s/\\\\$//
  6259.     p
  6260.     n
  6261.     /\\\\$/ b loop
  6262.       p
  6263.     }
  6264.     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  6265.        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  6266.     # Make sure the directory exists.
  6267.     test -f "$dirpart/$file" && continue
  6268.     fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
  6269.     $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
  6270.     # echo "creating $dirpart/$file"
  6271.     echo '# dummy' > "$dirpart/$file"
  6272.   done
  6273. done
  6274.  
  6275.  
  6276. exit 0
  6277. EOF
  6278. chmod +x $CONFIG_STATUS
  6279. rm -fr confdefs* $ac_clean_files
  6280. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  6281.  
  6282.